LibJS: Let GetGlobal cache module environment lookups when possible

This commit is contained in:
Andreas Kling 2025-03-16 18:39:57 -05:00 committed by Andreas Kling
commit 37c7eb14fe
Notes: github-actions[bot] 2025-03-20 17:52:50 +00:00
2 changed files with 20 additions and 5 deletions

View file

@ -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 {