diff options
author | Ben Smith <binji@chromium.org> | 2016-05-09 17:24:01 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-05-10 11:38:41 -0700 |
commit | 7805eab628a666979f2f95b0bcc93ab4c60da818 (patch) | |
tree | 656d147f173d4181e5c37b50ce1ada4f11870f17 /test/wasm.js | |
parent | 52223631265a9436e3751f0a037d68e16fcbd9fc (diff) | |
download | wabt-7805eab628a666979f2f95b0bcc93ab4c60da818.tar.gz wabt-7805eab628a666979f2f95b0bcc93ab4c60da818.tar.bz2 wabt-7805eab628a666979f2f95b0bcc93ab4c60da818.zip |
update run-tests.py/other scripts for SM support
Diffstat (limited to 'test/wasm.js')
-rw-r--r-- | test/wasm.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/wasm.js b/test/wasm.js index 5f996f50..6f208ef6 100644 --- a/test/wasm.js +++ b/test/wasm.js @@ -14,8 +14,18 @@ * limitations under the License. */ +/* polyfill from SM to D8 */ +if (typeof arguments == 'undefined') { + arguments = scriptArgs; +} + +if (typeof readbuffer == 'undefined') { + readbuffer = function(path) { return read(path, 'binary'); }; +} + if (arguments.length != 1) { - print('usage: d8 wasm.js -- <filename>'); + print('usage: <exe> wasm.js -- <filename.wasm>'); + print('got: ', arguments); quit(0); } |