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,
@@ -191,13 +193,14 @@ const arrayBufferViewTypeToIndex = new SafeMap();
191193
192194{
193195 const dummy = new ArrayBuffer ( ) ;
194- for ( const [ i , ctor ] of arrayBufferViewTypes . entries ( ) ) {
196+ ArrayPrototypeForEach ( arrayBufferViewTypes , ( ctor , i ) => {
195197 const tag = ObjectPrototypeToString ( new ctor ( dummy ) ) ;
196198 arrayBufferViewTypeToIndex . set ( tag , i ) ;
197- }
199+ } ) ;
198200}
199201
200- const bufferConstructorIndex = arrayBufferViewTypes . push ( FastBuffer ) - 1 ;
202+ const bufferConstructorIndex =
203+ ArrayPrototypePush ( arrayBufferViewTypes , FastBuffer ) - 1 ;
201204
202205class DefaultSerializer extends Serializer {
203206 constructor ( ) {
You can’t perform that action at this time.
0 commit comments