There was an error while loading. Please reload this page.
1 parent e12dbc8 commit 1551b40Copy full SHA for 1551b40
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,
@@ -185,13 +187,14 @@ const arrayBufferViewTypeToIndex = new SafeMap();
185
187
186
188
{
189
constdummy=newArrayBuffer();
-for(const[i,ctor]ofarrayBufferViewTypes.entries()){
190
+ArrayPrototypeForEach(arrayBufferViewTypes,(ctor,i)=>{
191
consttag=ObjectPrototypeToString(newctor(dummy));
192
arrayBufferViewTypeToIndex.set(tag,i);
-}
193
+});
194
}
195
-constbufferConstructorIndex=arrayBufferViewTypes.push(FastBuffer)-1;
196
+constbufferConstructorIndex=
197
+ArrayPrototypePush(arrayBufferViewTypes,FastBuffer)-1;
198
199
classDefaultSerializerextendsSerializer{
200
constructor(){
0 commit comments