aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-19 21:28:08 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-19 21:28:08 -0800
commit2b0cdb2d135dd6f3f13456a0a9fc07bf87319201 (patch)
tree3e5abffbd8e34aa1bc173631a07e2e39c4a5ac25 /src/library_browser.js
parent2f4dc08300f2643edd673e452e31d81bbbca061f (diff)
update emscripten_async_wget_data to dynCall
Diffstat (limited to 'src/library_browser.js')
-rw-r--r--src/library_browser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index 13275702..8aa9872a 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -389,10 +389,10 @@ mergeInto(LibraryManager.library, {
Browser.asyncLoad(Pointer_stringify(url), function(byteArray) {
var buffer = _malloc(byteArray.length);
HEAPU8.set(byteArray, buffer);
- FUNCTION_TABLE[onload](arg, buffer, byteArray.length);
+ Runtime.dynCall('viii', onload, [arg, buffer, byteArray.length]);
_free(buffer);
}, function() {
- if (onerror) FUNCTION_TABLE[onerror](arg);
+ if (onerror) Runtime.dynCall('vi', onerror, [arg]);
}, true /* no need for run dependency, this is async but will not do any prepare etc. step */ );
},