mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 17:34: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
15 changed files with 49 additions and 37 deletions
|
@ -73,4 +73,9 @@ LexicalEnvironment* NativeFunction::create_environment()
|
|||
return heap().allocate<LexicalEnvironment>(global_object(), LexicalEnvironment::EnvironmentRecordType::Function);
|
||||
}
|
||||
|
||||
bool NativeFunction::is_strict_mode() const
|
||||
{
|
||||
return vm().in_strict_mode();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue