File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 23
23
24
24
const {
25
25
ArrayBuffer,
26
+ ArrayPrototypeForEach,
26
27
ArrayPrototypeMap,
27
28
ArrayPrototypePush,
28
29
Error,
@@ -803,8 +804,8 @@ function Brotli(opts, mode) {
803
804
assert ( mode === BROTLI_DECODE || mode === BROTLI_ENCODE ) ;
804
805
805
806
TypedArrayPrototypeFill ( brotliInitParamsArray , - 1 ) ;
806
- if ( opts && opts . params ) {
807
- for ( const origKey of ObjectKeys ( opts . params ) ) {
807
+ if ( opts ? .params ) {
808
+ ArrayPrototypeForEach ( ObjectKeys ( opts . params ) , ( origKey ) => {
808
809
const key = + origKey ;
809
810
if ( NumberIsNaN ( key ) || key < 0 || key > kMaxBrotliParam ||
810
811
( brotliInitParamsArray [ key ] | 0 ) !== - 1 ) {
@@ -817,7 +818,7 @@ function Brotli(opts, mode) {
817
818
'number' , opts . params [ origKey ] ) ;
818
819
}
819
820
brotliInitParamsArray [ key ] = value ;
820
- }
821
+ } ) ;
821
822
}
822
823
823
824
const handle = mode === BROTLI_DECODE ?
You can’t perform that action at this time.
0 commit comments