summaryrefslogtreecommitdiff
path: root/test/gen-spec-js.py
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-05-10 13:58:27 -0700
committerBen Smith <binji@chromium.org>2016-05-10 13:58:27 -0700
commitf8cc693231149115316774eb29bd0aaf03378426 (patch)
tree07857e4528d7574145fe37884c4fb299b160dfaa /test/gen-spec-js.py
parentb6279218307de6073c80413e79c4e1946bee18bf (diff)
downloadwabt-f8cc693231149115316774eb29bd0aaf03378426.tar.gz
wabt-f8cc693231149115316774eb29bd0aaf03378426.tar.bz2
wabt-f8cc693231149115316774eb29bd0aaf03378426.zip
update gen-spec-js.py to work with spidermonkey
spidermonkey requires the first argument to WASM.instantiateModule be a TypedArray, not an ArrayBuffer.
Diffstat (limited to 'test/gen-spec-js.py')
-rwxr-xr-xtest/gen-spec-js.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gen-spec-js.py b/test/gen-spec-js.py
index 0fe2db6a..d32d7b1c 100755
--- a/test/gen-spec-js.py
+++ b/test/gen-spec-js.py
@@ -80,7 +80,7 @@ JS_FOOTER = """\
function createModule(data) {
var u8a = new Uint8Array(data);
var ffi = {spectest: {print: print}};
- return Wasm.instantiateModule(u8a.buffer, ffi);
+ return Wasm.instantiateModule(u8a, ffi);
}
function assertReturn(module, name, file, line) {