Index: src/execution.cc |
diff --git a/src/execution.cc b/src/execution.cc |
index 6d8c3c102247da8a9a3eb6ae9362847c879793c6..a7a28dea091c08775f94a693460058bead09ee5d 100644 |
--- a/src/execution.cc |
+++ b/src/execution.cc |
@@ -641,7 +641,8 @@ Handle<Object> Execution::ToInt32(Handle<Object> obj, bool* exc) { |
Handle<Object> Execution::NewDate(double time, bool* exc) { |
- Handle<Object> time_obj = FACTORY->NewNumber(time); |
+ Isolate* isolate = Isolate::Current(); |
+ Handle<Object> time_obj = isolate->factory()->NewNumber(time); |
RETURN_NATIVE_CALL(create_date, { time_obj }, exc); |
} |