1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/specs/run/npm_v8flags/main.js
Luca Casonato 1faac2dce3
fix(ext/node): handle node child_process with --v8-options flag (#24804)
Makes `v8flags` package from NPM work.
2024-07-31 16:28:08 +02:00

17 lines
309 B
JavaScript

import v8flags from "npm:v8flags@4.0.1";
const flags = await new Promise((resolve, reject) => {
v8flags((err, flags) => {
if (err) {
reject(err);
} else {
resolve(flags);
}
});
});
if (flags.length < 100) {
throw new Error("Expected at least 100 flags");
}
console.log("ok");