@@ -60,7 +60,6 @@ export type DecoderOptions<ContextType = undefined> = Readonly<
60
60
> &
61
61
ContextOf < ContextType > ;
62
62
63
-
64
63
const STATE_ARRAY = "array" ;
65
64
const STATE_MAP_KEY = "map_key" ;
66
65
const STATE_MAP_VALUE = "map_value" ;
@@ -120,7 +119,6 @@ class StackPool {
120
119
this . stackHeadPosition ++ ;
121
120
122
121
if ( this . stackHeadPosition === this . stack . length ) {
123
-
124
122
const partialState : Partial < StackState > = {
125
123
type : undefined ,
126
124
size : 0 ,
@@ -131,7 +129,7 @@ class StackPool {
131
129
key : null ,
132
130
} ;
133
131
134
- this . stack . push ( partialState as StackState )
132
+ this . stack . push ( partialState as StackState ) ;
135
133
}
136
134
137
135
return this . stack [ this . stackHeadPosition ] ;
@@ -182,7 +180,9 @@ try {
182
180
EMPTY_VIEW . getInt8 ( 0 ) ;
183
181
} catch ( e ) {
184
182
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
+ ) ;
186
186
}
187
187
}
188
188
export const DataViewIndexOutOfBoundsError = RangeError ;
@@ -220,7 +220,7 @@ export class Decoder<ContextType = undefined> {
220
220
this . maxArrayLength = options ?. maxArrayLength ?? UINT32_MAX ;
221
221
this . maxMapLength = options ?. maxMapLength ?? UINT32_MAX ;
222
222
this . maxExtLength = options ?. maxExtLength ?? UINT32_MAX ;
223
- this . keyDecoder = ( options ?. keyDecoder !== undefined ) ? options . keyDecoder : sharedCachedKeyDecoder ;
223
+ this . keyDecoder = options ?. keyDecoder !== undefined ? options . keyDecoder : sharedCachedKeyDecoder ;
224
224
}
225
225
226
226
private reinitializeState ( ) {
0 commit comments