diff options
-rw-r--r-- | src/jsifier.js | 5 | ||||
-rwxr-xr-x | tests/runner.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index f08be1c9..aab21eea 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -485,8 +485,9 @@ function JSify(data, functionsOnly, givenFunctions) { // Shared libraries reuse the runtime of their parents. item.JS = ''; } else { - if (!LibraryManager.library.hasOwnProperty(shortident)) { - LibraryManager.library[shortident] = new Function("Module['printErr']('missing library function: " + shortident + "'); abort(-1);"); + if (!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);"); } item.JS = addFromLibrary(shortident); } diff --git a/tests/runner.py b/tests/runner.py index 51247756..5602fd94 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -8176,7 +8176,7 @@ def process(filename): Settings.DEAD_FUNCTIONS = [] # Run the same code with argc that uses the dead function, see abort - test(('missing library function: unused'), args=['a', 'b'], no_build=True) + test(('missing function: unused'), args=['a', 'b'], no_build=True) # Normal stuff run_all('normal', r''' |