Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 79244d77ccd4d89af36e00435ba58d648cd015bd..e78f568119789df936625c31309ab003a239efcb 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -940,16 +940,17 @@ Local<Context> Shell::CreateEvaluationContext(Isolate* isolate) { |
Context::Scope scope(context); |
#ifndef V8_SHARED |
+ i::Factory* factory = i::Isolate::Current()->factory(); |
i::JSArguments js_args = i::FLAG_js_arguments; |
i::Handle<i::FixedArray> arguments_array = |
- FACTORY->NewFixedArray(js_args.argc()); |
+ factory->NewFixedArray(js_args.argc()); |
for (int j = 0; j < js_args.argc(); j++) { |
i::Handle<i::String> arg = |
- FACTORY->NewStringFromUtf8(i::CStrVector(js_args[j])); |
+ factory->NewStringFromUtf8(i::CStrVector(js_args[j])); |
arguments_array->set(j, *arg); |
} |
i::Handle<i::JSArray> arguments_jsarray = |
- FACTORY->NewJSArrayWithElements(arguments_array); |
+ factory->NewJSArrayWithElements(arguments_array); |
context->Global()->Set(String::New("arguments"), |
Utils::ToLocal(arguments_jsarray)); |
#endif // V8_SHARED |