mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
aa874c5513
This reverts commit8c2b577217
, reversing changes made to9cf18e98f8
.
10 lines
303 B
JavaScript
10 lines
303 B
JavaScript
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 imports = WebAssembly.Module.imports(m);
|
|
console.log('imports', imports);
|
|
assert.strictEqual(imports.length, 0);
|