File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1717const {
1818 Array,
1919 ArrayBuffer,
20+ ArrayPrototypeForEach,
21+ ArrayPrototypePush,
2022 DataView,
2123 Error,
2224 Float32Array,
@@ -185,13 +187,14 @@ const arrayBufferViewTypeToIndex = new SafeMap();
185187
186188{
187189 const dummy = new ArrayBuffer ( ) ;
188- for ( const [ i , ctor ] of arrayBufferViewTypes . entries ( ) ) {
190+ ArrayPrototypeForEach ( arrayBufferViewTypes , ( ctor , i ) => {
189191 const tag = ObjectPrototypeToString ( new ctor ( dummy ) ) ;
190192 arrayBufferViewTypeToIndex . set ( tag , i ) ;
191- }
193+ } ) ;
192194}
193195
194- const bufferConstructorIndex = arrayBufferViewTypes . push ( FastBuffer ) - 1 ;
196+ const bufferConstructorIndex =
197+ ArrayPrototypePush ( arrayBufferViewTypes , FastBuffer ) - 1 ;
195198
196199class DefaultSerializer extends Serializer {
197200 constructor ( ) {
You can’t perform that action at this time.
0 commit comments