diff --git a/lib/v8.js b/lib/v8.js index 0413b5690f1bb0..f4fe88346b0b63 100644 --- a/lib/v8.js +++ b/lib/v8.js @@ -24,8 +24,8 @@ const { Int16Array, Int32Array, Int8Array, - Map, ObjectPrototypeToString, + SafeMap, Uint16Array, Uint32Array, Uint8Array, @@ -181,7 +181,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();