From 6eb6752c4cb8bc339bdd5af51d3673ea6d100300 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 3 Oct 2020 17:02:43 -0700 Subject: LibJS: Strict mode is now handled by Functions and Programs, not Blocks Since blocks can't be strict by themselves, it makes no sense for them to store whether or not they are strict. Strict-ness is now stored in the Program and FunctionNode ASTNodes. Fixes issue #3641 --- Libraries/LibJS/Runtime/VM.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Libraries/LibJS/Runtime/VM.h') diff --git a/Libraries/LibJS/Runtime/VM.h b/Libraries/LibJS/Runtime/VM.h index a602febae7..045318e60b 100644 --- a/Libraries/LibJS/Runtime/VM.h +++ b/Libraries/LibJS/Runtime/VM.h @@ -50,6 +50,7 @@ struct ScopeFrame { ScopeType type; NonnullRefPtr scope_node; bool pushed_environment { false }; + bool is_strict_mode { false }; }; struct CallFrame { -- cgit v1.2.3