Skip to content

Commit 6c1bbb5

Browse files
aduh95targos
authored andcommitted
v8: refactor to use more primordials
PR-URL: #36285 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent c442d89 commit 6c1bbb5

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,
@@ -181,7 +181,7 @@ const arrayBufferViewTypes = [Int8Array, Uint8Array, Uint8ClampedArray,
181181
Int16Array, Uint16Array, Int32Array, Uint32Array,
182182
Float32Array, Float64Array, DataView];
183183

184-
const arrayBufferViewTypeToIndex = new Map();
184+
const arrayBufferViewTypeToIndex = new SafeMap();
185185

186186
{
187187
const dummy = new ArrayBuffer();

0 commit comments

Comments
 (0)