| Index: src/d8.cc
|
| ===================================================================
|
| --- src/d8.cc (revision 1828)
|
| +++ src/d8.cc (working copy)
|
| @@ -412,18 +412,8 @@
|
| utility_context_->SetSecurityToken(Undefined());
|
| Context::Scope utility_scope(utility_context_);
|
|
|
| - i::JSArguments js_args = i::FLAG_js_arguments;
|
| - i::Handle<i::FixedArray> arguments_array =
|
| - i::Factory::NewFixedArray(js_args.argc());
|
| - for (int j = 0; j < js_args.argc(); j++) {
|
| - i::Handle<i::String> arg =
|
| - i::Factory::NewStringFromUtf8(i::CStrVector(js_args[j]));
|
| - arguments_array->set(j, *arg);
|
| - }
|
| - i::Handle<i::JSArray> arguments_jsarray =
|
| - i::Factory::NewJSArrayWithElements(arguments_array);
|
| global_template->Set(String::New("arguments"),
|
| - Utils::ToLocal(arguments_jsarray));
|
| + V8::GetJSArguments());
|
|
|
| #ifdef ENABLE_DEBUGGER_SUPPORT
|
| // Install the debugger object in the utility scope
|
|
|