diff options
author | max99x <max99x@gmail.com> | 2011-06-26 02:30:45 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-06-26 02:30:45 +0300 |
commit | 1ef7f3ce7f44792c4d8cfb1f2b5d908d94b7581c (patch) | |
tree | c600bd0415b4d4ec94224828b84e522edd6bca3f /src/jsifier.js | |
parent | f08cb4c404d482abf346c56726c0e97f69b0905b (diff) |
Minor polish:
* Fixed loose "in" check for library functions in jsifier.js.
* Made __globalConstructor__ a var in preamble_sharedlib.js.
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index d7143dde..a0c6ec72 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -203,7 +203,7 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { if (BUILD_AS_SHARED_LIB) { // Shared libraries reuse the runtime of their parents. item.JS = ''; - } else if (shortident in Library) { + } else if (Library.hasOwnProperty(shortident)) { function addFromLibrary(ident) { if (ident in addedLibraryItems) return ''; // Don't replace implemented functions with library ones (which can happen when we add dependencies). |