aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorEvgenii Kliuchnikov <eustas@google.com>2023-08-10 04:45:38 -0700
committerCopybara-Service <copybara-worker@google.com>2023-08-10 04:46:01 -0700
commit9ff341daaf2419e7985c89ec09964c81e4e2f3da (patch)
tree5e4f9ddc92f44eb63dc1d139ca56d99b4c356000 /js
parent8c7923045a76e9a2baeddf6746a5c909497fb84a (diff)
downloadbrotli-9ff341daaf2419e7985c89ec09964c81e4e2f3da.zip
brotli-9ff341daaf2419e7985c89ec09964c81e4e2f3da.tar.gz
brotli-9ff341daaf2419e7985c89ec09964c81e4e2f3da.tar.bz2
Replace TS strict_checks with source-level suppressions.
PiperOrigin-RevId: 555445920
Diffstat (limited to 'js')
-rw-r--r--js/decode.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/decode.ts b/js/decode.ts
index d12b7db..ed80855 100644
--- a/js/decode.ts
+++ b/js/decode.ts
@@ -886,9 +886,15 @@ function decompress(s: State): void {
ringBufferMask = s.ringBufferSize - 1;
ringBuffer = s.ringBuffer;
continue;
+ // Fallthrough case in switch is intentional.
+ // tslint:disable-next-line:ban-ts-suppressions
+ // @ts-ignore error TS7029: Fallthrough case in switch.
case 3:
readMetablockHuffmanCodesAndContextMaps(s);
s.runningState = 4;
+ // Fallthrough case in switch is intentional.
+ // tslint:disable-next-line:ban-ts-suppressions
+ // @ts-ignore error TS7029: Fallthrough case in switch.
case 4:
if (s.metaBlockLength <= 0) {
s.runningState = 2;
@@ -924,6 +930,9 @@ function decompress(s: State): void {
s.copyLength = copyLengthOffset + ((copyLengthExtraBits <= 16) ? readFewBits(s, copyLengthExtraBits) : readManyBits(s, copyLengthExtraBits));
s.j = 0;
s.runningState = 7;
+ // Fallthrough case in switch is intentional.
+ // tslint:disable-next-line:ban-ts-suppressions
+ // @ts-ignore error TS7029: Fallthrough case in switch.
case 7:
if (s.trivialLiteralContext !== 0) {
while (s.j < s.insertLength) {
@@ -1106,6 +1115,9 @@ function decompress(s: State): void {
case 6:
copyUncompressedData(s);
continue;
+ // Fallthrough case in switch is intentional.
+ // tslint:disable-next-line:ban-ts-suppressions
+ // @ts-ignore error TS7029: Fallthrough case in switch.
case 12:
s.ringBufferBytesReady = Math.min(s.pos, s.ringBufferSize);
s.runningState = 13;