mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Don't store argc, argv on FunctionEnvironmentRecord. (#358)
Save argc, argv on ExecutionState is enough. and if function call is end, argv member on env points wrong place. Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
864973236d
commit
3bc6cb5cca
13 changed files with 88 additions and 89 deletions
|
|
@ -135,7 +135,7 @@ Value NativeFunctionObject::processNativeFunctionCall(ExecutionState& state, con
|
|||
}
|
||||
|
||||
Value receiver = receiverSrc;
|
||||
ExecutionState newState(ctx, &state, nullptr, this, isStrict);
|
||||
ExecutionState newState(ctx, &state, nullptr, this, argc, argv, isStrict);
|
||||
|
||||
if (!isConstruct) {
|
||||
// prepare receiver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue