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,
@@ -798,8 +799,8 @@ function Brotli(opts, mode) {
798
799
assert ( mode === BROTLI_DECODE || mode === BROTLI_ENCODE ) ;
799
800
800
801
TypedArrayPrototypeFill ( brotliInitParamsArray , - 1 ) ;
801
- if ( opts && opts . params ) {
802
- for ( const origKey of ObjectKeys ( opts . params ) ) {
802
+ if ( opts ? .params ) {
803
+ ArrayPrototypeForEach ( ObjectKeys ( opts . params ) , ( origKey ) => {
803
804
const key = + origKey ;
804
805
if ( NumberIsNaN ( key ) || key < 0 || key > kMaxBrotliParam ||
805
806
( brotliInitParamsArray [ key ] | 0 ) !== - 1 ) {
@@ -812,7 +813,7 @@ function Brotli(opts, mode) {
812
813
'number' , opts . params [ origKey ] ) ;
813
814
}
814
815
brotliInitParamsArray [ key ] = value ;
815
- }
816
+ } ) ;
816
817
}
817
818
818
819
const handle = mode === BROTLI_DECODE ?
You can’t perform that action at this time.
0 commit comments