fix(node): make 'v8.setFlagsFromString' a noop (#19271)

Towards https://github.com/denoland/deno/issues/16460
This commit is contained in:
Bartek Iwańczuk 2023-05-26 15:41:03 +02:00 committed by GitHub
parent d5a8a3d69f
commit 160fe9787e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View file

@ -4,10 +4,7 @@ import {
getHeapStatistics,
setFlagsFromString,
} from "node:v8";
import {
assertEquals,
assertThrows,
} from "../../../test_util/std/testing/asserts.ts";
import { assertEquals } from "../../../test_util/std/testing/asserts.ts";
// https://github.com/nodejs/node/blob/a2bbe5ff216bc28f8dac1c36a8750025a93c3827/test/parallel/test-v8-version-tag.js#L6
Deno.test({
@ -51,8 +48,8 @@ Deno.test({
});
Deno.test({
name: "setFlagsFromString throws",
name: "setFlagsFromString",
fn() {
assertThrows(() => setFlagsFromString("--allow_natives_syntax"));
setFlagsFromString("--allow_natives_syntax");
},
});