From 1c12838d1bbb2743dd4a8cceeaf67dcf303d6cbd 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 9cc3412c341b54..2ecb4c06a1931e 100644 --- a/lib/v8.js +++ b/lib/v8.js @@ -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();