mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
pass parameter array as function parameter list
This commit is contained in:
parent
a485d5be7b
commit
f3f4b50eff
@ -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)
|
||||
);
|
||||
|
@ -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)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user