summaryrefslogtreecommitdiff
path: root/src/js/wasm.js-post.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-11-11 17:05:18 -0800
committerGitHub <noreply@github.com>2016-11-11 17:05:18 -0800
commit485b1dca62848be92f9fcce4a70a5c63eb5015ee (patch)
tree4deb4485ae3011ec910fc77a3655f741cd59ac0b /src/js/wasm.js-post.js
parentf9695926d067cd66a296c38b42da2ae3bcb1131d (diff)
downloadbinaryen-485b1dca62848be92f9fcce4a70a5c63eb5015ee.tar.gz
binaryen-485b1dca62848be92f9fcce4a70a5c63eb5015ee.tar.bz2
binaryen-485b1dca62848be92f9fcce4a70a5c63eb5015ee.zip
Run wasm natively by default, no fallbacks to interpreting (#838)
* run wasm natively by default, no fallbacks to interpreting * improve error message, suggesting people add methods if they want more
Diffstat (limited to 'src/js/wasm.js-post.js')
-rw-r--r--src/js/wasm.js-post.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/wasm.js-post.js b/src/js/wasm.js-post.js
index 1fc0509cb..90c2f18b8 100644
--- a/src/js/wasm.js-post.js
+++ b/src/js/wasm.js-post.js
@@ -28,7 +28,7 @@ function integrateWasmJS(Module) {
// inputs
- var method = Module['wasmJSMethod'] || {{{ wasmJSMethod }}} || 'native-wasm,interpret-s-expr'; // by default, try native and then .wast
+ var method = Module['wasmJSMethod'] || {{{ wasmJSMethod }}} || 'native-wasm'; // by default, use native support
Module['wasmJSMethod'] = method;
var wasmTextFile = Module['wasmTextFile'] || {{{ wasmTextFile }}};
@@ -333,7 +333,7 @@ function integrateWasmJS(Module) {
}
}
- if (!exports) throw 'no binaryen method succeeded';
+ if (!exports) throw 'no binaryen method succeeded. consider enabling more options, like interpreting, if you want that: https://github.com/kripken/emscripten/wiki/WebAssembly#binaryen-methods';
Module['printErr']('binaryen method succeeded.');