diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-10-03 17:02:43 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-04 10:46:12 +0200 |
commit | 6eb6752c4cb8bc339bdd5af51d3673ea6d100300 (patch) | |
tree | 8071cc11d994dbf756958722f02d2ea66dd72470 /Libraries/LibJS/Runtime/VM.h | |
parent | 1b3f9c170c6f047ddad879bcd278cf0c8beb2d6c (diff) | |
download | serenity-6eb6752c4cb8bc339bdd5af51d3673ea6d100300.zip |
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
Diffstat (limited to 'Libraries/LibJS/Runtime/VM.h')
-rw-r--r-- | Libraries/LibJS/Runtime/VM.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<ScopeNode> scope_node; bool pushed_environment { false }; + bool is_strict_mode { false }; }; struct CallFrame { |