| Index: net/proxy/proxy_resolver_v8.cc
|
| diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc
|
| index 3c9233d21e0b1fd020f9772923b66d460b892e14..16ad61f742407697a94edeabd1da4de96300130f 100644
|
| --- a/net/proxy/proxy_resolver_v8.cc
|
| +++ b/net/proxy/proxy_resolver_v8.cc
|
| @@ -507,21 +507,25 @@ class ProxyResolverV8::Context {
|
| // Attach the javascript bindings.
|
| v8::Local<v8::FunctionTemplate> alert_template =
|
| v8::FunctionTemplate::New(isolate_, &AlertCallback, v8_this);
|
| + alert_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "alert"),
|
| alert_template);
|
|
|
| v8::Local<v8::FunctionTemplate> my_ip_address_template =
|
| v8::FunctionTemplate::New(isolate_, &MyIpAddressCallback, v8_this);
|
| + my_ip_address_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "myIpAddress"),
|
| my_ip_address_template);
|
|
|
| v8::Local<v8::FunctionTemplate> dns_resolve_template =
|
| v8::FunctionTemplate::New(isolate_, &DnsResolveCallback, v8_this);
|
| + dns_resolve_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "dnsResolve"),
|
| dns_resolve_template);
|
|
|
| v8::Local<v8::FunctionTemplate> is_plain_host_name_template =
|
| v8::FunctionTemplate::New(isolate_, &IsPlainHostNameCallback, v8_this);
|
| + is_plain_host_name_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "isPlainHostName"),
|
| is_plain_host_name_template);
|
|
|
| @@ -529,11 +533,13 @@ class ProxyResolverV8::Context {
|
|
|
| v8::Local<v8::FunctionTemplate> dns_resolve_ex_template =
|
| v8::FunctionTemplate::New(isolate_, &DnsResolveExCallback, v8_this);
|
| + dns_resolve_ex_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "dnsResolveEx"),
|
| dns_resolve_ex_template);
|
|
|
| v8::Local<v8::FunctionTemplate> my_ip_address_ex_template =
|
| v8::FunctionTemplate::New(isolate_, &MyIpAddressExCallback, v8_this);
|
| + my_ip_address_ex_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "myIpAddressEx"),
|
| my_ip_address_ex_template);
|
|
|
| @@ -541,11 +547,13 @@ class ProxyResolverV8::Context {
|
| v8::FunctionTemplate::New(isolate_,
|
| &SortIpAddressListCallback,
|
| v8_this);
|
| + sort_ip_address_list_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "sortIpAddressList"),
|
| sort_ip_address_list_template);
|
|
|
| v8::Local<v8::FunctionTemplate> is_in_net_ex_template =
|
| v8::FunctionTemplate::New(isolate_, &IsInNetExCallback, v8_this);
|
| + is_in_net_ex_template->RemovePrototype();
|
| global_template->Set(ASCIILiteralToV8String(isolate_, "isInNetEx"),
|
| is_in_net_ex_template);
|
|
|
|
|