blob: 90e3df1d98d33205369a33ec1287b6cdc0e7e011 (
plain)
1
2
3
4
5
6
7
8
9
10
|
const fs = require('fs');
const process = require('process');
const assert = require('assert');
const buffer = fs.readFileSync(process.argv[2]);
let m = new WebAssembly.Module(buffer);
let list = WebAssembly.Module.imports(m);
console.log('imports', list);
if (list.length !== 0)
throw new Error("there are some imports");
|