Commit a8bb8742 authored by gsathya's avatar gsathya Committed by Commit bot

[isolate] remove redundant return

TBR=adamk@chromium.org

Review-Url: https://codereview.chromium.org/2604483005
Cr-Commit-Position: refs/heads/master@{#41949}
parent 26325f0c
...@@ -1820,6 +1820,7 @@ bool PromiseHandlerCheck(Isolate* isolate, Handle<JSReceiver> handler, ...@@ -1820,6 +1820,7 @@ bool PromiseHandlerCheck(Isolate* isolate, Handle<JSReceiver> handler,
// - PromiseIdResolveHandler forwarding to the output of .then // - PromiseIdResolveHandler forwarding to the output of .then
// - Promise.all/Promise.race forwarding to a throwaway Promise, which // - Promise.all/Promise.race forwarding to a throwaway Promise, which
// has a dependency edge to the generated outer Promise. // has a dependency edge to the generated outer Promise.
// Otherwise, this is a real reject handler for the Promise.
Handle<Symbol> key = isolate->factory()->promise_forwarding_handler_symbol(); Handle<Symbol> key = isolate->factory()->promise_forwarding_handler_symbol();
Handle<Object> forwarding_handler = JSReceiver::GetDataProperty(handler, key); Handle<Object> forwarding_handler = JSReceiver::GetDataProperty(handler, key);
if (forwarding_handler->IsUndefined(isolate)) { if (forwarding_handler->IsUndefined(isolate)) {
...@@ -1836,9 +1837,6 @@ bool PromiseHandlerCheck(Isolate* isolate, Handle<JSReceiver> handler, ...@@ -1836,9 +1837,6 @@ bool PromiseHandlerCheck(Isolate* isolate, Handle<JSReceiver> handler,
return InternalPromiseHasUserDefinedRejectHandler( return InternalPromiseHasUserDefinedRejectHandler(
isolate, Handle<JSPromise>::cast(deferred_promise_obj)); isolate, Handle<JSPromise>::cast(deferred_promise_obj));
// Otherwise, this is a real reject handler for the Promise
return true;
} }
bool InternalPromiseHasUserDefinedRejectHandler(Isolate* isolate, bool InternalPromiseHasUserDefinedRejectHandler(Isolate* isolate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment