diff options
author | max99x <max99x@gmail.com> | 2011-08-28 19:18:47 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-28 19:18:47 +0300 |
commit | 8d2a080af4b8e83f27b8ccb32a2ed945b80a6c68 (patch) | |
tree | c112d154f2f7f1ca7dc9fffb06798098fdf84283 | |
parent | a25b0e9ac1950252c310d0f220b82e28c84f8e6c (diff) |
Minor Closure Compiler compatibility fixes.
-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. |