Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Issue 607913002: Report promise reject with no handler (behind a flag). (Closed)

Created:
6 years, 2 months ago by Yang
Modified:
6 years, 2 months ago
Reviewers:
aandrey, rossberg, yurys
CC:
v8-dev, Paweł Hajdan Jr.
Project:
v8
Visibility:
Public.

Description

Report promise reject with no handler (behind a flag). Main changes include: - refactorings of exception handling in isolate.cc. - explicit marking of whether a reject handler exists/existed. - explicit marking of already reported promises. - test cases R=aandrey@chromium.org, rossberg@chromium.org, yurys@chromium.org BUG=v8:3093 API=v8::Message::GetPromise(), v8::Promise::HasRejectHandler() LOG=Y

Patch Set 1 #

Total comments: 6

Patch Set 2 : addressed comments #

Total comments: 2

Patch Set 3 : more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -158 lines) Patch
M include/v8.h View 4 chunks +9 lines, -1 line 0 comments Download
M src/api.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 chunks +25 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/contexts.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/debug.h View 2 chunks +1 line, -4 lines 0 comments Download
M src/debug.cc View 1 2 5 chunks +11 lines, -16 lines 0 comments Download
M src/execution.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/execution.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/factory.h View 1 chunk +2 lines, -5 lines 0 comments Download
M src/factory.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/heap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/isolate.h View 1 chunk +8 lines, -0 lines 0 comments Download
M src/isolate.cc View 5 chunks +141 lines, -97 lines 0 comments Download
M src/messages.h View 1 chunk +2 lines, -4 lines 0 comments Download
M src/messages.cc View 2 chunks +9 lines, -11 lines 0 comments Download
M src/objects.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/promise.js View 4 chunks +10 lines, -11 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime.cc View 1 chunk +9 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +106 lines, -0 lines 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Yang
6 years, 2 months ago (2014-09-26 13:40:39 UTC) #1
Yang
On 2014/09/26 13:40:39, Yang wrote: The reason I'm putting this behind a flag is because ...
6 years, 2 months ago (2014-09-26 13:46:50 UTC) #2
aandrey
looks good https://codereview.chromium.org/607913002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/607913002/diff/1/src/api.cc#newcode5988 src/api.cc:5988: LOG_API(isolate, "Promise::Then"); Promise::Then ? https://codereview.chromium.org/607913002/diff/1/src/debug.cc File src/debug.cc ...
6 years, 2 months ago (2014-09-26 14:58:46 UTC) #3
Yang
https://codereview.chromium.org/607913002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/607913002/diff/1/src/api.cc#newcode5988 src/api.cc:5988: LOG_API(isolate, "Promise::Then"); On 2014/09/26 14:58:46, aandrey wrote: > Promise::Then ...
6 years, 2 months ago (2014-09-26 15:04:42 UTC) #4
aandrey
https://codereview.chromium.org/607913002/diff/20001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/607913002/diff/20001/src/debug.cc#newcode2526 src/debug.cc:2526: uncaught |= has_reject_handler->IsFalse(); uncaught =
6 years, 2 months ago (2014-09-26 15:08:53 UTC) #5
Yang
https://codereview.chromium.org/607913002/diff/20001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/607913002/diff/20001/src/debug.cc#newcode2526 src/debug.cc:2526: uncaught |= has_reject_handler->IsFalse(); On 2014/09/26 15:08:52, aandrey wrote: > ...
6 years, 2 months ago (2014-09-26 15:10:21 UTC) #6
Yang
On 2014/09/26 15:10:21, Yang wrote: > https://codereview.chromium.org/607913002/diff/20001/src/debug.cc > File src/debug.cc (right): > > https://codereview.chromium.org/607913002/diff/20001/src/debug.cc#newcode2526 > ...
6 years, 2 months ago (2014-09-29 13:43:24 UTC) #7
Yang
6 years, 2 months ago (2014-09-29 14:54:43 UTC) #8
Message was sent while issue was closed.
On 2014/09/29 13:43:24, Yang wrote:
> On 2014/09/26 15:10:21, Yang wrote:
> > https://codereview.chromium.org/607913002/diff/20001/src/debug.cc
> > File src/debug.cc (right):
> > 
> >
https://codereview.chromium.org/607913002/diff/20001/src/debug.cc#newcode2526
> > src/debug.cc:2526: uncaught |= has_reject_handler->IsFalse();
> > On 2014/09/26 15:08:52, aandrey wrote:
> > > uncaught =
> > 
> > Done.
> 
> Closing this as I'll work on an alternative.

the successor to this is https://codereview.chromium.org/600723005/.

Powered by Google App Engine
This is Rietveld 408576698