From 667354fd128b1fdb5cd2c4d8352f92e577a34a88 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 29 Oct 2025 23:23:36 +0100 Subject: [PATCH] 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. --- Libraries/LibJS/Bytecode/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Bytecode/Interpreter.cpp b/Libraries/LibJS/Bytecode/Interpreter.cpp index 982fcea6dd..a6f514a14b 100644 --- a/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -1062,7 +1062,7 @@ inline ThrowCompletionOr 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)); } }