diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-29 12:12:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-29 12:12:32 -0700 |
commit | 3a108dc9cdbe270b23f1ce5ef32ce56ae864ce45 (patch) | |
tree | 9e4c6006e37fd2d5ac2a5f28e0a223f73c63af3f /src/jsifier.js | |
parent | ed34c86a0bf695726985d4d6dff9573fdba0eee3 (diff) |
ERROR_ON_UNRESOLVED_SYMBOLS option
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 045328f8..5fcf6b18 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -487,6 +487,7 @@ function JSify(data, functionsOnly, givenFunctions) { } else { // 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 (ERROR_ON_UNDEFINED_SYMBOLS) error('unresolved symbol: ' + shortident); if (VERBOSE || WARN_ON_UNDEFINED_SYMBOLS) printErr('warning: unresolved symbol: ' + shortident); LibraryManager.library[shortident] = new Function("Module['printErr']('missing function: " + shortident + "'); abort(-1);"); } |