diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-04 13:54:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-04 17:03:33 +0200 |
commit | a007b3c379bd28795eebd93877eced138b51f739 (patch) | |
tree | ac1b55824b701e88e8997b577cc7793d32a5690a /Userland | |
parent | f41b5a453525a185cf80ab65204d23ec27071f64 (diff) | |
download | serenity-a007b3c379bd28795eebd93877eced138b51f739.zip |
LibJS: Move "strict mode" state to the call stack
Each call frame now knows whether it's executing in strict mode.
It's no longer necessary to access the scope stack to find this mode.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/test-js.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/test-js.cpp b/Userland/test-js.cpp index cd704f8a7f..4bf7141e7d 100644 --- a/Userland/test-js.cpp +++ b/Userland/test-js.cpp @@ -160,7 +160,7 @@ void TestRunnerGlobalObject::initialize() JS_DEFINE_NATIVE_FUNCTION(TestRunnerGlobalObject::is_strict_mode) { - return JS::Value(vm.interpreter().in_strict_mode()); + return JS::Value(vm.in_strict_mode()); } static void cleanup_and_exit() |