From 6c1bbb5caf7d1a95a98752d9296f0e8c4f66df3c Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 20 Nov 2020 15:48:18 +0100 Subject: [PATCH] v8: refactor to use more primordials PR-URL: https://github.com/nodejs/node/pull/36285 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- lib/v8.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();