summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-10-04 13:54:44 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-04 17:03:33 +0200
commita007b3c379bd28795eebd93877eced138b51f739 (patch)
treeac1b55824b701e88e8997b577cc7793d32a5690a /Userland
parentf41b5a453525a185cf80ab65204d23ec27071f64 (diff)
downloadserenity-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.cpp2
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()