diff options
Diffstat (limited to 'deps/v8/src/bootstrapper.cc')
-rw-r--r-- | deps/v8/src/bootstrapper.cc | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/deps/v8/src/bootstrapper.cc b/deps/v8/src/bootstrapper.cc index 449196216..deda96f31 100644 --- a/deps/v8/src/bootstrapper.cc +++ b/deps/v8/src/bootstrapper.cc @@ -1111,21 +1111,29 @@ bool Genesis::InstallNatives() { Factory::LookupAsciiSymbol("context_data"), proxy_context_data, common_attributes); - Handle<Proxy> proxy_eval_from_function = - Factory::NewProxy(&Accessors::ScriptEvalFromFunction); + Handle<Proxy> proxy_eval_from_script = + Factory::NewProxy(&Accessors::ScriptEvalFromScript); script_descriptors = Factory::CopyAppendProxyDescriptor( script_descriptors, - Factory::LookupAsciiSymbol("eval_from_function"), - proxy_eval_from_function, + Factory::LookupAsciiSymbol("eval_from_script"), + proxy_eval_from_script, common_attributes); - Handle<Proxy> proxy_eval_from_position = - Factory::NewProxy(&Accessors::ScriptEvalFromPosition); + Handle<Proxy> proxy_eval_from_script_position = + Factory::NewProxy(&Accessors::ScriptEvalFromScriptPosition); script_descriptors = Factory::CopyAppendProxyDescriptor( script_descriptors, - Factory::LookupAsciiSymbol("eval_from_position"), - proxy_eval_from_position, + Factory::LookupAsciiSymbol("eval_from_script_position"), + proxy_eval_from_script_position, + common_attributes); + Handle<Proxy> proxy_eval_from_function_name = + Factory::NewProxy(&Accessors::ScriptEvalFromFunctionName); + script_descriptors = + Factory::CopyAppendProxyDescriptor( + script_descriptors, + Factory::LookupAsciiSymbol("eval_from_function_name"), + proxy_eval_from_function_name, common_attributes); Handle<Map> script_map = Handle<Map>(script_fun->initial_map()); @@ -1338,8 +1346,6 @@ bool Genesis::InstallExtension(v8::RegisteredExtension* current) { ASSERT(Top::has_pending_exception() != result); if (!result) { Top::clear_pending_exception(); - v8::Utils::ReportApiFailure( - "v8::Context::New()", "Error installing extension"); } current->set_state(v8::INSTALLED); return result; |