Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index b10350d7fbb976ff627d7cb39790a3a76e72d082..c7ce16ee2e5d6a92ffc7df7df316a1d9ed6150c1 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -79,7 +79,7 @@ RUNTIME_FUNCTION(Runtime_PromiseRejectEvent) { |
if (debug_event) isolate->debug()->OnPromiseReject(promise, value); |
Handle<Symbol> key = isolate->factory()->promise_has_handler_symbol(); |
// Do not report if we actually have a handler. |
- if (JSObject::GetDataProperty(promise, key)->IsUndefined()) { |
+ if (JSReceiver::GetDataProperty(promise, key)->IsUndefined()) { |
isolate->ReportPromiseReject(promise, value, |
v8::kPromiseRejectWithNoHandler); |
} |
@@ -93,7 +93,7 @@ RUNTIME_FUNCTION(Runtime_PromiseRevokeReject) { |
CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); |
Handle<Symbol> key = isolate->factory()->promise_has_handler_symbol(); |
// At this point, no revocation has been issued before |
- RUNTIME_ASSERT(JSObject::GetDataProperty(promise, key)->IsUndefined()); |
+ RUNTIME_ASSERT(JSReceiver::GetDataProperty(promise, key)->IsUndefined()); |
isolate->ReportPromiseReject(promise, Handle<Object>(), |
v8::kPromiseHandlerAddedAfterReject); |
return isolate->heap()->undefined_value(); |