Index: src/date.js |
diff --git a/src/date.js b/src/date.js |
index 2be8bcb220a7f3ed91ea1fb6943fa79398d5e4a7..4de1cad006542495a4a252e5bfcc7538c8cbb091 100644 |
--- a/src/date.js |
+++ b/src/date.js |
@@ -16,6 +16,7 @@ var $createDate; |
// Imports |
var GlobalDate = global.Date; |
+var GlobalObject = global.Object; |
var InternalArray = utils.InternalArray; |
var IsFinite; |
var MathAbs; |
@@ -820,7 +821,7 @@ function CreateDate(time) { |
// ------------------------------------------------------------------- |
%SetCode(GlobalDate, DateConstructor); |
-%FunctionSetPrototype(GlobalDate, new GlobalDate(NAN)); |
+%FunctionSetPrototype(GlobalDate, new GlobalObject()); |
// Set up non-enumerable properties of the Date object itself. |
utils.InstallFunctions(GlobalDate, DONT_ENUM, [ |