LibJS: Always assume module bindings access is in strict mode

Modules are always in strict mode anyway, no need to look at the
strictness flag here.
This commit is contained in:
Andreas Kling 2025-10-29 23:23:36 +01:00 committed by Andreas Kling
parent fae2888103
commit 667354fd12

View File

@ -1062,7 +1062,7 @@ inline ThrowCompletionOr<Value> get_global(Interpreter& interpreter, IdentifierT
cache.in_module_environment = true;
return TRY(module_environment.get_binding_value_direct(vm, index.value()));
}
return TRY(module_environment.get_binding_value(vm, identifier, strict == Strict::Yes));
return TRY(module_environment.get_binding_value(vm, identifier, true));
}
}