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>
This commit is contained in:
Sebastien Ahkrin 2019-11-30 20:12:58 +01:00 committed by Michaël Zasso
parent 3743fe1955
commit e9f2d7cff7
No known key found for this signature in database
GPG Key ID: 770F7A9A5AE15600

View File

@ -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) => {