mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix(node): make 'v8.setFlagsFromString' a noop (#19271)
Towards https://github.com/denoland/deno/issues/16460
This commit is contained in:
parent
d5a8a3d69f
commit
160fe9787e
2 changed files with 11 additions and 7 deletions
|
@ -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");
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue