summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/BooleanConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/BooleanConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/BooleanConstructor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/BooleanConstructor.cpp b/Libraries/LibJS/Runtime/BooleanConstructor.cpp
index b588671946..b1522a698c 100644
--- a/Libraries/LibJS/Runtime/BooleanConstructor.cpp
+++ b/Libraries/LibJS/Runtime/BooleanConstructor.cpp
@@ -29,13 +29,14 @@
#include <LibJS/Runtime/BooleanConstructor.h>
#include <LibJS/Runtime/BooleanObject.h>
#include <LibJS/Runtime/BooleanPrototype.h>
+#include <LibJS/Runtime/GlobalObject.h>
namespace JS {
BooleanConstructor::BooleanConstructor()
- : NativeFunction("Boolean", *interpreter().function_prototype())
+ : NativeFunction("Boolean", *interpreter().global_object().function_prototype())
{
- put("prototype", Value(interpreter().boolean_prototype()));
+ put("prototype", Value(interpreter().global_object().boolean_prototype()));
put("length", Value(1));
}