aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js
index feeeca38..b6754249 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -334,6 +334,7 @@ var Runtime = {
assert(args.length == sig.length-1);
#endif
#if ASM_JS
+ if (!args.splice) args = Array.prototype.slice.call(args);
args.splice(0, 0, ptr);
return Module['dynCall_' + sig].apply(null, args);
#else