Index: src/runtime/runtime-promise.cc |
diff --git a/src/runtime/runtime-promise.cc b/src/runtime/runtime-promise.cc |
index 656227d0c8b0238cb9c240e03f4dbcdfc4f3b689..d8e3dcaad3ee1fb21eab756a55a66d3e938739dd 100644 |
--- a/src/runtime/runtime-promise.cc |
+++ b/src/runtime/runtime-promise.cc |
@@ -109,7 +109,7 @@ void PromiseFulfill(Isolate* isolate, Handle<JSPromise> promise, |
Handle<Smi> status, Handle<Object> value) { |
// Check if there are any callbacks. |
if (!promise->deferred()->IsUndefined(isolate)) { |
- Handle<Object> tasks((status->value() == kPromiseFulfilled) |
+ Handle<Object> tasks((status->value() == v8::Promise::kFulfilled) |
? promise->fulfill_reactions() |
: promise->reject_reactions(), |
isolate); |
@@ -131,7 +131,7 @@ RUNTIME_FUNCTION(Runtime_PromiseReject) { |
PromiseRejectEvent(isolate, promise, promise, reason, debug_event); |
- Handle<Smi> status(Smi::FromInt(kPromiseRejected), isolate); |
+ Handle<Smi> status(Smi::FromInt(v8::Promise::kRejected), isolate); |
PromiseFulfill(isolate, promise, status, reason); |
return isolate->heap()->undefined_value(); |
} |