Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 5c396cb52bcbd6b965100e2c427c1efb886cba51..82fab36a2b83ea96c80042d232b06dda40db30c2 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -2507,7 +2507,7 @@ void Debug::OnPromiseReject(Handle<JSObject> promise, Handle<Object> value) { |
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 (JSObject::GetDataProperty(promise, key)->IsUndefined()) { |
+ if (JSReceiver::GetDataProperty(promise, key)->IsUndefined()) { |
OnException(value, promise); |
} |
} |
@@ -2516,9 +2516,9 @@ void Debug::OnPromiseReject(Handle<JSObject> promise, Handle<Object> value) { |
MaybeHandle<Object> Debug::PromiseHasUserDefinedRejectHandler( |
Handle<JSObject> promise) { |
Handle<JSFunction> fun = Handle<JSFunction>::cast( |
- JSObject::GetDataProperty(isolate_->js_builtins_object(), |
- isolate_->factory()->NewStringFromStaticChars( |
- "$promiseHasUserDefinedRejectHandler"))); |
+ JSReceiver::GetDataProperty(isolate_->js_builtins_object(), |
+ isolate_->factory()->NewStringFromStaticChars( |
+ "$promiseHasUserDefinedRejectHandler"))); |
return Execution::Call(isolate_, fun, promise, 0, NULL); |
} |