mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
fae2888103
commit
667354fd12
Notes:
github-actions[bot]
2025-10-30 07:56:17 +00:00
Author: https://github.com/awesomekling
Commit: 667354fd12
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6638
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue