Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index bd22790c59c97b31e93c80f9b111ef89a6650ff4..89334fa70868382b482f8a1d0494f685916e2844 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -2507,7 +2507,7 @@ |
HandleScope scope(isolate_); |
// Check whether the promise has been marked as having triggered a message. |
Handle<Symbol> key = isolate_->factory()->promise_debug_marker_symbol(); |
- if (JSReceiver::GetDataProperty(promise, key)->IsUndefined()) { |
+ if (JSObject::GetDataProperty(promise, key)->IsUndefined()) { |
OnException(value, promise); |
} |
} |
@@ -2516,9 +2516,9 @@ |
MaybeHandle<Object> Debug::PromiseHasUserDefinedRejectHandler( |
Handle<JSObject> promise) { |
Handle<JSFunction> fun = Handle<JSFunction>::cast( |
- JSReceiver::GetDataProperty(isolate_->js_builtins_object(), |
- isolate_->factory()->NewStringFromStaticChars( |
- "$promiseHasUserDefinedRejectHandler"))); |
+ JSObject::GetDataProperty(isolate_->js_builtins_object(), |
+ isolate_->factory()->NewStringFromStaticChars( |
+ "$promiseHasUserDefinedRejectHandler"))); |
return Execution::Call(isolate_, fun, promise, 0, NULL); |
} |