diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-20 18:02:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-20 18:02:27 -0800 |
commit | a60ea10e4de59ebe44f5a60c09140da515263ac7 (patch) | |
tree | facc7fe6c8499260e65a46161e4d3e8e322dc850 | |
parent | 98c1cf33a6e53c54e16035378ff8d0ff5a782461 (diff) |
read function signatures from library
-rw-r--r-- | src/modules.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js index 325730dd..bb260e10 100644 --- a/src/modules.js +++ b/src/modules.js @@ -277,7 +277,7 @@ var Functions = { }); } for (var ident in this.indexedFunctions) { - var sig = ASM_JS ? Functions.implementedFunctions[ident] || Functions.unimplementedFunctions[ident] : 'x'; + var sig = ASM_JS ? Functions.implementedFunctions[ident] || Functions.unimplementedFunctions[ident] || LibraryManager.library[ident.substr(1) + '__sig'] : 'x'; assert(sig, ident); if (!tables[sig]) tables[sig] = emptyTable(sig); // TODO: make them compact tables[sig][this.indexedFunctions[ident]] = ident; |