Files
bun.sh/packages/bun-wasm/test/node.mjs
jhmaster 117cee5ca5 bun-wasm fixes & improvements (#4126)
* automate Bun.version & revision polyfills

* polyfill Bun.gc

* bun:jsc module initial polyfills

* fixes & improvements to bun-wasm
2023-08-11 18:20:21 -07:00

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