diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-25 12:09:25 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-25 12:09:25 -0700 |
commit | 7e74231b0aa13e2f079b8a1e343b88aad6a9e053 (patch) | |
tree | 35b691a663c3eba52be4ddc9939efdb346f43a00 | |
parent | 4b1c3fbdb426ed86fdbeaecdac7ef5e7ff2648c8 (diff) |
fix test_runtimelink
-rw-r--r-- | src/jsifier.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index aab21eea..b39d63dd 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -485,7 +485,8 @@ function JSify(data, functionsOnly, givenFunctions) { // Shared libraries reuse the runtime of their parents. item.JS = ''; } else { - if (!LibraryManager.library.hasOwnProperty(shortident) && !LibraryManager.library.hasOwnProperty(shortident + '__inline')) { + // If this is not linkable, anything not in the library is definitely missing + if (!LINKABLE && !LibraryManager.library.hasOwnProperty(shortident) && !LibraryManager.library.hasOwnProperty(shortident + '__inline')) { if (ASSERTIONS) printErr('warning: missing function: ' + shortident); LibraryManager.library[shortident] = new Function("Module['printErr']('missing function: " + shortident + "'); abort(-1);"); } |