10 lines
316 B
JavaScript
10 lines
316 B
JavaScript
import { pathToFileURL } from 'node:url';
|
|
|
|
const modulePath = process.argv[2];
|
|
if (!modulePath) {
|
|
throw new Error('usage: node scripts/smoke-qemu-wasm.mjs <qemu-system-riscv32.js>');
|
|
}
|
|
|
|
const { default: createQemu } = await import(pathToFileURL(modulePath));
|
|
await createQemu({ arguments: ['-machine', 'help'] });
|