mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +00:00
LibJS: Move "strict mode" state to the call stack
Each call frame now knows whether it's executing in strict mode. It's no longer necessary to access the scope stack to find this mode.
This commit is contained in:
parent
f41b5a4535
commit
a007b3c379
Notes:
sideshowbarker
2024-07-19 02:04:33 +09:00
Author: https://github.com/awesomekling
Commit: a007b3c379
15 changed files with 49 additions and 37 deletions
|
@ -141,7 +141,8 @@ Value ScriptFunction::call()
|
|||
arguments.append({ parameter.name, value });
|
||||
vm().current_environment()->set(global_object(), parameter.name, { value, DeclarationKind::Var });
|
||||
}
|
||||
return interpreter->execute_statement(global_object(), m_body, arguments, ScopeType::Function, m_is_strict);
|
||||
|
||||
return interpreter->execute_statement(global_object(), m_body, arguments, ScopeType::Function);
|
||||
}
|
||||
|
||||
Value ScriptFunction::construct(Function&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue