File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2323
2424const {
2525 ArrayBuffer,
26+ ArrayPrototypeForEach,
2627 ArrayPrototypeMap,
2728 ArrayPrototypePush,
2829 Error,
@@ -803,8 +804,8 @@ function Brotli(opts, mode) {
803804 assert ( mode === BROTLI_DECODE || mode === BROTLI_ENCODE ) ;
804805
805806 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 ) => {
808809 const key = + origKey ;
809810 if ( NumberIsNaN ( key ) || key < 0 || key > kMaxBrotliParam ||
810811 ( brotliInitParamsArray [ key ] | 0 ) !== - 1 ) {
@@ -817,7 +818,7 @@ function Brotli(opts, mode) {
817818 'number' , opts . params [ origKey ] ) ;
818819 }
819820 brotliInitParamsArray [ key ] = value ;
820- }
821+ } ) ;
821822 }
822823
823824 const handle = mode === BROTLI_DECODE ?
You can’t perform that action at this time.
0 commit comments