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,
@@ -798,8 +799,8 @@ function Brotli(opts, mode) {
798799 assert ( mode === BROTLI_DECODE || mode === BROTLI_ENCODE ) ;
799800
800801 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 ) => {
803804 const key = + origKey ;
804805 if ( NumberIsNaN ( key ) || key < 0 || key > kMaxBrotliParam ||
805806 ( brotliInitParamsArray [ key ] | 0 ) !== - 1 ) {
@@ -812,7 +813,7 @@ function Brotli(opts, mode) {
812813 'number' , opts . params [ origKey ] ) ;
813814 }
814815 brotliInitParamsArray [ key ] = value ;
815- }
816+ } ) ;
816817 }
817818
818819 const handle = mode === BROTLI_DECODE ?
You can’t perform that action at this time.
0 commit comments