@@ -60,7 +60,6 @@ export type DecoderOptions<ContextType = undefined> = Readonly<
6060> &
6161 ContextOf < ContextType > ;
6262
63-
6463const STATE_ARRAY = "array" ;
6564const STATE_MAP_KEY = "map_key" ;
6665const STATE_MAP_VALUE = "map_value" ;
@@ -120,7 +119,6 @@ class StackPool {
120119 this . stackHeadPosition ++ ;
121120
122121 if ( this . stackHeadPosition === this . stack . length ) {
123-
124122 const partialState : Partial < StackState > = {
125123 type : undefined ,
126124 size : 0 ,
@@ -131,7 +129,7 @@ class StackPool {
131129 key : null ,
132130 } ;
133131
134- this . stack . push ( partialState as StackState )
132+ this . stack . push ( partialState as StackState ) ;
135133 }
136134
137135 return this . stack [ this . stackHeadPosition ] ;
@@ -182,7 +180,9 @@ try {
182180 EMPTY_VIEW . getInt8 ( 0 ) ;
183181} catch ( e ) {
184182 if ( ! ( e instanceof RangeError ) ) {
185- throw new Error ( "This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access" ) ;
183+ throw new Error (
184+ "This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access" ,
185+ ) ;
186186 }
187187}
188188export const DataViewIndexOutOfBoundsError = RangeError ;
@@ -220,7 +220,7 @@ export class Decoder<ContextType = undefined> {
220220 this . maxArrayLength = options ?. maxArrayLength ?? UINT32_MAX ;
221221 this . maxMapLength = options ?. maxMapLength ?? UINT32_MAX ;
222222 this . maxExtLength = options ?. maxExtLength ?? UINT32_MAX ;
223- this . keyDecoder = ( options ?. keyDecoder !== undefined ) ? options . keyDecoder : sharedCachedKeyDecoder ;
223+ this . keyDecoder = options ?. keyDecoder !== undefined ? options . keyDecoder : sharedCachedKeyDecoder ;
224224 }
225225
226226 private reinitializeState ( ) {
0 commit comments