You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi~
There is a error message as "JSError: Error: too many arguments",
and a test case is put the code to styp8/examples/simples.js: console.log(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
if the number of arguments is more than > 10, it will occurs. console.log(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
10-arguments is fine.
So the question is why cannot pass more than 10-arguments from JS code to Python function?
Thank you.
The text was updated successfully, but these errors were encountered:
I had finally some time to take a look at this misbehaviour. This is not a bug but just the result of a check which used to be performed by PyV8 (and that STPyV8 inherited). The check lives at
The author used to set 10 as maximum number of arguments value. I think this is a safe assumption but please feel free to point out use cases where increasing this value could be beneficial. Thanks!
Thanks for your reply. I have changed the argument from 10 to 12, and it has also failed.
And many malicious js in EK, they use String.fromCharCode( 31, 32, ... to many int ..., 45, 46) to combine malicious code. So it's important to increase the maximum number.
Hi~
There is a error message as "JSError: Error: too many arguments",
and a test case is put the code to styp8/examples/simples.js:
console.log(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
if the number of arguments is more than > 10, it will occurs.
console.log(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
10-arguments is fine.
So the question is why cannot pass more than 10-arguments from JS code to Python function?
Thank you.
The text was updated successfully, but these errors were encountered: