summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/DateConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/DateConstructor.cpp')
-rw-r--r--Libraries/LibJS/Runtime/DateConstructor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/DateConstructor.cpp b/Libraries/LibJS/Runtime/DateConstructor.cpp
index 79bf837e78..d2f09ff9f3 100644
--- a/Libraries/LibJS/Runtime/DateConstructor.cpp
+++ b/Libraries/LibJS/Runtime/DateConstructor.cpp
@@ -28,15 +28,16 @@
#include <LibJS/Interpreter.h>
#include <LibJS/Runtime/Date.h>
#include <LibJS/Runtime/DateConstructor.h>
+#include <LibJS/Runtime/GlobalObject.h>
#include <sys/time.h>
#include <time.h>
namespace JS {
DateConstructor::DateConstructor()
- : NativeFunction("Date", *interpreter().function_prototype())
+ : NativeFunction("Date", *interpreter().global_object().function_prototype())
{
- put("prototype", interpreter().date_prototype());
+ put("prototype", interpreter().global_object().date_prototype());
put("length", Value(7));
put_native_function("now", now);