Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 706fee43ee22b9bf2167bd9c4bbb74c0680f3141..a487431e6cf24cd0d74a9ed1f8357856c8bb986f 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -417,7 +417,7 @@ MaybeHandle<String> ErrorToStringHelper::Stringify(Isolate* isolate, |
if (internal_error_lookup.IsFound() && |
!ShadowsInternalError(isolate, &name_lookup, &internal_error_lookup)) { |
Handle<JSObject> holder = internal_error_lookup.GetHolder<JSObject>(); |
- name = Handle<String>(holder->constructor_name()); |
+ name = JSReceiver::GetConstructorName(holder); |
} else { |
ASSIGN_RETURN_ON_EXCEPTION( |
isolate, name, |