aboutsummaryrefslogtreecommitdiff
path: root/src/shell.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.js')
-rw-r--r--src/shell.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shell.js b/src/shell.js
index 065462e1..83057f6f 100644
--- a/src/shell.js
+++ b/src/shell.js
@@ -81,6 +81,8 @@ if (ENVIRONMENT_IS_WEB) {
}
if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
+ Uint8Array.prototype.get = function(idx) { return this[idx]; };
+
Module['read'] = function(url) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, false);