Commit 654efd0a authored by cbruni's avatar cbruni Committed by Commit bot

[proxies] Implement Proxy.name

LOG=n
BUG=v8:1543

Review URL: https://codereview.chromium.org/1531683002

Cr-Commit-Position: refs/heads/master@{#32891}
parent fe88e547
......@@ -2320,7 +2320,7 @@ void Genesis::InitializeGlobal_harmony_proxies() {
Handle<Code> code(isolate->builtins()->ProxyConstructor());
Handle<JSFunction> proxy_function = factory->NewFunction(
isolate->proxy_function_map(), factory->Object_string(), code);
isolate->proxy_function_map(), factory->Proxy_string(), code);
JSFunction::SetInitialMap(proxy_function,
Handle<Map>(native_context()->proxy_map(), isolate),
......
......@@ -849,7 +849,7 @@ void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT
os << "\n - initial_map = ";
if (has_initial_map()) os << Brief(initial_map());
os << "\n - shared_info = " << Brief(shared());
os << "\n - name = " << Brief(shared()->name());
os << "\n - name = " << Brief(shared()->name());
if (shared()->is_generator()) {
os << "\n - generator";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment