mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
v8: refactor to use more primordials
PR-URL: https://github.com/nodejs/node/pull/36285 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
e6e708400b
commit
dbfb10dd36
@ -24,8 +24,8 @@ const {
|
||||
Int16Array,
|
||||
Int32Array,
|
||||
Int8Array,
|
||||
Map,
|
||||
ObjectPrototypeToString,
|
||||
SafeMap,
|
||||
Uint16Array,
|
||||
Uint32Array,
|
||||
Uint8Array,
|
||||
@ -194,7 +194,7 @@ const arrayBufferViewTypes = [Int8Array, Uint8Array, Uint8ClampedArray,
|
||||
Int16Array, Uint16Array, Int32Array, Uint32Array,
|
||||
Float32Array, Float64Array, DataView];
|
||||
|
||||
const arrayBufferViewTypeToIndex = new Map();
|
||||
const arrayBufferViewTypeToIndex = new SafeMap();
|
||||
|
||||
{
|
||||
const dummy = new ArrayBuffer();
|
||||
|
Loading…
Reference in New Issue
Block a user