a6f7596fb9
When building with LTO, builtin functions that are defined but whose calls have not been inserted yet, get internalized. We need to prevent these symbols from being internalized at LTO time. Refer to https://reviews.llvm.org/D49434.
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);
|