summaryrefslogtreecommitdiff
path: root/test/wasm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm.js')
-rw-r--r--test/wasm.js12
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);
}