diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-19 16:40:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-19 16:40:31 -0700 |
commit | 9bad883dcaf378b4b48084c06184953d7bebf143 (patch) | |
tree | 1e41e6baa3ca9a88d180e03c552f13eebe334960 | |
parent | 3bb37508dbb4a05a51c952bb39dfd454c615ecef (diff) |
Module.read closure fix
-rw-r--r-- | src/library.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index f7ae62cb..ebd80daf 100644 --- a/src/library.js +++ b/src/library.js @@ -256,12 +256,12 @@ LibraryManager.library = { if (typeof XMLHttpRequest !== 'undefined') { // Browser. assert('Cannot do synchronous binary XHRs in modern browsers. Use --embed-file or --preload-file in emcc'); - } else if (Module.read) { + } else if (Module['read']) { // Command-line. try { // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as // read() will try to parse UTF8. - obj.contents = intArrayFromString(Module.read(obj.url), true); + obj.contents = intArrayFromString(Module['read'](obj.url), true); } catch (e) { success = false; } |