| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 89ebdd7675d15231a601e285b7bfaed19e52013b..4b0162f65f40396a4a6f591d6b7658049478f2c0 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -11923,7 +11923,7 @@ bool JSFunction::PassesFilter(const char* raw_filter) {
|
| }
|
|
|
|
|
| -Handle<String> JSFunction::GetDebugName(Handle<JSFunction> function) {
|
| +Handle<String> JSFunction::GetName(Handle<JSFunction> function) {
|
| Isolate* isolate = function->GetIsolate();
|
| Handle<Object> name =
|
| JSReceiver::GetDataProperty(function, isolate->factory()->name_string());
|
| @@ -11932,6 +11932,15 @@ Handle<String> JSFunction::GetDebugName(Handle<JSFunction> function) {
|
| }
|
|
|
|
|
| +Handle<String> JSFunction::GetDebugName(Handle<JSFunction> function) {
|
| + Isolate* isolate = function->GetIsolate();
|
| + Handle<Object> name = JSReceiver::GetDataProperty(
|
| + function, isolate->factory()->display_name_string());
|
| + if (name->IsString()) return Handle<String>::cast(name);
|
| + return JSFunction::GetName(function);
|
| +}
|
| +
|
| +
|
| void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball,
|
| const char* to_string, Handle<Object> to_number,
|
| const char* type_of, byte kind) {
|
|
|