diff --git a/test/de/inetsoftware/jwebassembly/SpiderMonkeyTest.js b/test/de/inetsoftware/jwebassembly/SpiderMonkeyTest.js index 03d43a0..d51e156 100644 --- a/test/de/inetsoftware/jwebassembly/SpiderMonkeyTest.js +++ b/test/de/inetsoftware/jwebassembly/SpiderMonkeyTest.js @@ -16,6 +16,6 @@ dependencies["global.Math"] = Math; instantiate( ret, dependencies ).then( - instance => console.log( instance.exports[scriptArgs[0]]( scriptArgs.slice(1) ) ), + instance => console.log( instance.exports[scriptArgs[0]]( ...scriptArgs.slice(1) ) ), reason => console.log(reason) ); diff --git a/test/de/inetsoftware/jwebassembly/nodetest.js b/test/de/inetsoftware/jwebassembly/nodetest.js index cf6ae93..e892ed1 100644 --- a/test/de/inetsoftware/jwebassembly/nodetest.js +++ b/test/de/inetsoftware/jwebassembly/nodetest.js @@ -18,6 +18,6 @@ dependencies["global.Math"] = Math; instantiate( ret, dependencies ).then( - instance => console.log( instance.exports[process.argv[2]]( process.argv.slice(3) ) ), + instance => console.log( instance.exports[process.argv[2]]( ...process.argv.slice(3) ) ), reason => console.log(reason) );