Index: src/debug/debug.cc |
diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
index 6434f182d33752c7f4deb210ba76c1154b5164da..e789def917e371c1a43c540cfb92c1daa5553b70 100644 |
--- a/src/debug/debug.cc |
+++ b/src/debug/debug.cc |
@@ -1823,10 +1823,7 @@ void Debug::OnPromiseReject(Handle<JSObject> promise, Handle<Object> value) { |
MaybeHandle<Object> Debug::PromiseHasUserDefinedRejectHandler( |
Handle<JSObject> promise) { |
- Handle<JSFunction> fun = Handle<JSFunction>::cast( |
- JSReceiver::GetDataProperty(isolate_->js_builtins_object(), |
- isolate_->factory()->NewStringFromStaticChars( |
- "$promiseHasUserDefinedRejectHandler"))); |
+ Handle<JSFunction> fun = isolate_->promise_has_user_defined_reject_handler(); |
return Execution::Call(isolate_, fun, promise, 0, NULL); |
} |