mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
* automate Bun.version & revision polyfills * polyfill Bun.gc * bun:jsc module initial polyfills * fixes & improvements to bun-wasm
11 lines
260 B
JavaScript
11 lines
260 B
JavaScript
import { readFileSync } from "fs";
|
|
import { init, getTests } from "../index.mjs";
|
|
|
|
const filePath = process.argv[2];
|
|
if (!filePath) throw new Error("Usage: node node.mjs <file>");
|
|
|
|
const buf = readFileSync(filePath);
|
|
await init();
|
|
|
|
console.log(getTests(buf));
|