mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibJS: Let GetGlobal cache module environment lookups when possible
This commit is contained in:
parent
8fcff2fa18
commit
37c7eb14fe
Notes:
github-actions[bot]
2025-03-20 17:52:50 +00:00
Author: https://github.com/awesomekling
Commit: 37c7eb14fe
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4017
2 changed files with 20 additions and 5 deletions
|
@ -31,7 +31,9 @@ struct PropertyLookupCache {
|
|||
|
||||
struct GlobalVariableCache : public PropertyLookupCache {
|
||||
u64 environment_serial_number { 0 };
|
||||
Optional<u32> environment_binding_index;
|
||||
u32 environment_binding_index { 0 };
|
||||
bool has_environment_binding_index { false };
|
||||
bool in_module_environment { false };
|
||||
};
|
||||
|
||||
struct SourceRecord {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue