LibJS: Stop tracking whether execution context is strict mode or not

This was only used for basic testing, and forced us to plumb this flag
flag in a bunch of places.
This commit is contained in:
Andreas Kling 2025-10-28 21:16:35 +01:00 committed by Andreas Kling
parent fb05063dde
commit fdb85a330e
Notes: github-actions[bot] 2025-10-29 20:22:21 +00:00
19 changed files with 4 additions and 320 deletions

View file

@ -689,9 +689,6 @@ void ECMAScriptFunctionObject::make_method(Object& home_object)
// 10.2.1.1 PrepareForOrdinaryCall ( F, newTarget ), https://tc39.es/ecma262/#sec-prepareforordinarycall
void ECMAScriptFunctionObject::prepare_for_ordinary_call(VM& vm, ExecutionContext& callee_context, Object* new_target)
{
// Non-standard
callee_context.is_strict_mode = is_strict_mode();
// 1. Let callerContext be the running execution context.
// 2. Let calleeContext be a new ECMAScript code execution context.