mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
src: enable Float16Array
on global object
This feature is enabled in stable Chrome 136 but not in V8 by default. PR-URL: https://github.com/nodejs/node/pull/58154 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
parent
8ed450b6bb
commit
f75a1265a8
3 changed files with 2 additions and 6 deletions
|
@ -848,6 +848,7 @@ static ExitCode InitializeNodeWithArgsInternal(
|
|||
// These features are completed and enabled by default in Chrome, but not
|
||||
// in V8.
|
||||
V8::SetFlagsFromString("--js-explicit-resource-management");
|
||||
V8::SetFlagsFromString("--js-float16array");
|
||||
|
||||
#if defined(NODE_V8_OPTIONS)
|
||||
// Should come before the call to V8::SetFlagsFromCommandLine()
|
||||
|
|
|
@ -33,6 +33,7 @@ const intrinsics = new Set([
|
|||
'Int8Array',
|
||||
'Uint16Array',
|
||||
'Int16Array',
|
||||
'Float16Array',
|
||||
'Uint32Array',
|
||||
'Int32Array',
|
||||
'Float32Array',
|
||||
|
|
|
@ -70,12 +70,6 @@
|
|||
"requires": ["full-icu"]
|
||||
},
|
||||
"encodeInto.any.js": {
|
||||
"fail": {
|
||||
"expected": [
|
||||
"Invalid encodeInto() destination: Float16Array, backed by: ArrayBuffer",
|
||||
"Invalid encodeInto() destination: Float16Array, backed by: SharedArrayBuffer"
|
||||
]
|
||||
},
|
||||
"requires": ["small-icu"]
|
||||
},
|
||||
"textdecoder-copy.any.js": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue