aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jsifier.js2
-rw-r--r--src/preamble_sharedlib.js2
2 files changed, 2 insertions, 2 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).
diff --git a/src/preamble_sharedlib.js b/src/preamble_sharedlib.js
index 01d68cfe..4b91c44c 100644
--- a/src/preamble_sharedlib.js
+++ b/src/preamble_sharedlib.js
@@ -4,7 +4,7 @@
// Runtime essentials
//========================================
-function __globalConstructor__() {
+var __globalConstructor__ = function globalConstructor() {
}
// === Body ===