summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/ConsoleObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/ConsoleObject.cpp')
-rw-r--r--Libraries/LibJS/Runtime/ConsoleObject.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/ConsoleObject.cpp b/Libraries/LibJS/Runtime/ConsoleObject.cpp
index 56464cde3c..de61b1700e 100644
--- a/Libraries/LibJS/Runtime/ConsoleObject.cpp
+++ b/Libraries/LibJS/Runtime/ConsoleObject.cpp
@@ -29,6 +29,7 @@
#include <AK/Function.h>
#include <LibJS/Interpreter.h>
#include <LibJS/Runtime/ConsoleObject.h>
+#include <LibJS/Runtime/GlobalObject.h>
#include <stdio.h>
namespace JS {
@@ -44,7 +45,7 @@ static void print_args(Interpreter& interpreter)
}
ConsoleObject::ConsoleObject()
- : Object(interpreter().object_prototype())
+ : Object(interpreter().global_object().object_prototype())
{
put_native_function("log", log);
put_native_function("debug", debug);