diff options
-rw-r--r-- | src/library.js | 2 | ||||
-rw-r--r-- | src/preamble.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index 7b52fdef..067e0f62 100644 --- a/src/library.js +++ b/src/library.js @@ -4415,7 +4415,7 @@ LibraryManager.library = { return 0; } else { if (DLFCN_DATA.error) _free(DLFCN_DATA.error); - var msgArr = Module.intArrayFromString(DLFCN_DATA.errorMsg); + var msgArr = intArrayFromString(DLFCN_DATA.errorMsg); DLFCN_DATA.error = allocate(msgArr, 'i8', ALLOC_NORMAL); DLFCN_DATA.errorMsg = null; return DLFCN_DATA.error; diff --git a/src/preamble.js b/src/preamble.js index 59389e58..9e0f5ce3 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -562,7 +562,7 @@ Module['String_copy'] = String_copy; // Tools if (typeof print === 'undefined') { - print = console.log; // we are on the web + this['print'] = console.log; // we are on the web } // This processes a JS string into a C-line array of numbers, 0-terminated. |