LibJS: Assume is_strict_mode called with running execution context

This should always be invoked when there is an execution context
on the stack.
This commit is contained in:
Shannon Booth 2025-05-16 12:37:15 +12:00 committed by Alexander Kalenik
commit 7d44640c0f
Notes: github-actions[bot] 2025-05-23 01:26:54 +00:00
2 changed files with 4 additions and 8 deletions

View file

@ -164,7 +164,10 @@ public:
FunctionObject const* active_function_object() const { return running_execution_context().function; }
FunctionObject* active_function_object() { return running_execution_context().function; }
bool in_strict_mode() const;
bool in_strict_mode() const
{
return running_execution_context().is_strict_mode;
}
size_t argument_count() const
{