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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/v8.js

+2-2
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-
const arrayBufferViewTypeToIndex = new Map();
197+
const arrayBufferViewTypeToIndex = new SafeMap();
198198

199199
{
200200
const dummy = new ArrayBuffer();

0 commit comments

Comments
 (0)