1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-30 02:59:11 -05:00
denoland-deno/tests/specs/run/npm_v8flags/main.js

18 lines
309 B
JavaScript
Raw Normal View History

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");