mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 01:58:05 -05:00
1faac2dce3
Makes `v8flags` package from NPM work.
17 lines
309 B
JavaScript
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");
|