Skip to content

Commit fbd5652

Browse files
aduh95danielleadams
authored andcommitted
v8: refactor to use more primordials
PR-URL: #36285 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 2a24096 commit fbd5652

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/v8.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const {
2424
Int16Array,
2525
Int32Array,
2626
Int8Array,
27-
Map,
2827
ObjectPrototypeToString,
28+
SafeMap,
2929
Uint16Array,
3030
Uint32Array,
3131
Uint8Array,
@@ -194,7 +194,7 @@ const arrayBufferViewTypes = [Int8Array, Uint8Array, Uint8ClampedArray,
194194
Int16Array,Uint16Array,Int32Array,Uint32Array,
195195
Float32Array,Float64Array,DataView];
196196

197-
constarrayBufferViewTypeToIndex=newMap();
197+
constarrayBufferViewTypeToIndex=newSafeMap();
198198

199199
{
200200
constdummy=newArrayBuffer();

0 commit comments

Comments
 (0)