From b00fcafc9dd74cc3326022686f91566551fd6398 Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Sat, 30 Nov 2019 20:12:58 +0100 Subject: [PATCH] lib: add TypedArray constructors to primordials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/30740 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- lib/internal/per_context/primordials.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/internal/per_context/primordials.js b/lib/internal/per_context/primordials.js index 9e17b3541c78af..46ce4457d1e814 100644 --- a/lib/internal/per_context/primordials.js +++ b/lib/internal/per_context/primordials.js @@ -104,10 +104,17 @@ primordials.SafePromise = makeSafe( 'Array', 'ArrayBuffer', 'BigInt', + 'BigInt64Array', + 'BigUint64Array', 'Boolean', 'Date', 'Error', + 'Float32Array', + 'Float64Array', 'Function', + 'Int16Array', + 'Int32Array', + 'Int8Array', 'Map', 'Number', 'Object', @@ -115,6 +122,10 @@ primordials.SafePromise = makeSafe( 'Set', 'String', 'Symbol', + 'Uint16Array', + 'Uint32Array', + 'Uint8Array', + 'Uint8ClampedArray', 'WeakMap', 'WeakSet', ].forEach((name) => {