diff options
-rw-r--r-- | src/modules.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.js b/src/modules.js index d259048c..232403e8 100644 --- a/src/modules.js +++ b/src/modules.js @@ -256,7 +256,7 @@ var Functions = { var tables = {}; for (var ident in this.indexedFunctions) { var sig = Functions.implementedFunctions[ident] || Functions.libraryFunctions[ident]; - assert(sig); + assert(sig, ident); if (!tables[sig]) tables[sig] = zeros(this.nextIndex); // TODO: make them compact tables[sig][this.indexedFunctions[ident]] = ident; } @@ -339,7 +339,7 @@ var PassManager = { blockAddresses: Functions.blockAddresses, indexedFunctions: Functions.indexedFunctions, implementedFunctions: ASM_JS ? Functions.implementedFunctions : [], - libraryFunctions: ASM_JS ? Functions.libraryFunctions : {}, + libraryFunctions: Functions.libraryFunctions, } })); } else if (phase == 'post') { |