We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc7657 commit 3ade8a0Copy full SHA for 3ade8a0
lib/wasm/WebAssemblyGenerator.js
@@ -208,8 +208,11 @@ class WebAssemblyGenerator extends Generator {
208
generate(module) {
209
const bin = module.originalSource().source();
210
211
+ // FIXME(sven): this module is parsed twice, we could preserve the AST
212
+ // from wasm/WebAssemblyParser.js
213
const ast = decode(bin, {
- ignoreDataSection: true
214
+ ignoreDataSection: true,
215
+ ignoreCodeSection: true
216
});
217
218
const importedGlobals = getImportedGlobals(ast);
0 commit comments