diff --git a/src/node.cc b/src/node.cc index 1941404f6fa528..ddde8d4b2a24ba 100644 --- a/src/node.cc +++ b/src/node.cc @@ -845,6 +845,11 @@ static ExitCode InitializeNodeWithArgsInternal( // is security relevant, for Node it's less important. V8::SetFlagsFromString("--no-freeze-flags-after-init"); + // 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() // so the user can disable a flag --foo at run-time by passing diff --git a/test/common/globals.js b/test/common/globals.js index de50724b7c6358..1641c4df36b92d 100644 --- a/test/common/globals.js +++ b/test/common/globals.js @@ -33,6 +33,7 @@ const intrinsics = new Set([ 'Int8Array', 'Uint16Array', 'Int16Array', + 'Float16Array', 'Uint32Array', 'Int32Array', 'Float32Array', diff --git a/test/wpt/status/encoding.json b/test/wpt/status/encoding.json index f9378d7195a2a7..c258031e485564 100644 --- a/test/wpt/status/encoding.json +++ b/test/wpt/status/encoding.json @@ -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": {