Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSebastien Ahkrin <sebastien48criquet@gmail.com>2019-11-30 22:12:58 +0300
committerMichaël Zasso <targos@protonmail.com>2019-12-16 10:33:20 +0300
commite9f2d7cff76607fe88e066f4f9c241abb2228952 (patch)
treebdfcba2de9fb94fd963fa227922fc460d72af894 /lib
parent3743fe1955067ebfd37ffc01de0c0140169bfea7 (diff)
lib: add TypedArray constructors to primordials
PR-URL: https://github.com/nodejs/node/pull/30740 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/per_context/primordials.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/internal/per_context/primordials.js b/lib/internal/per_context/primordials.js
index 9e17b3541c7..46ce4457d1e 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) => {