There was an error while loading. Please reload this page.
1 parent 7134d49 commit 2dd2ec3Copy full SHA for 2dd2ec3
1 file changed
lib/v8.js
@@ -17,6 +17,8 @@
17
const{
18
Array,
19
ArrayBuffer,
20
+ ArrayPrototypeForEach,
21
+ ArrayPrototypePush,
22
DataView,
23
Error,
24
Float32Array,
@@ -191,13 +193,14 @@ const arrayBufferViewTypeToIndex = new SafeMap();
191
193
192
194
{
195
constdummy=newArrayBuffer();
-for(const[i,ctor]ofarrayBufferViewTypes.entries()){
196
+ArrayPrototypeForEach(arrayBufferViewTypes,(ctor,i)=>{
197
consttag=ObjectPrototypeToString(newctor(dummy));
198
arrayBufferViewTypeToIndex.set(tag,i);
-}
199
+});
200
}
201
-constbufferConstructorIndex=arrayBufferViewTypes.push(FastBuffer)-1;
202
+constbufferConstructorIndex=
203
+ArrayPrototypePush(arrayBufferViewTypes,FastBuffer)-1;
204
205
classDefaultSerializerextendsSerializer{
206
constructor(){
0 commit comments