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

Issue 440773004: Trigger exception debug events on Promise reject. (Closed)

Created:
6 years, 4 months ago by Yang
Modified:
6 years, 4 months ago
Reviewers:
aandrey, rossberg
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Trigger exception debug events on Promise reject. R=rossberg@chromium.org, aandrey@chromium.org BUG=393913 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=22913

Patch Set 1 #

Total comments: 10

Patch Set 2 : updated #

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+979 lines, -802 lines) Patch
M src/debug.h View 5 chunks +16 lines, -10 lines 0 comments Download
M src/debug.cc View 1 4 chunks +50 lines, -34 lines 0 comments Download
M src/isolate.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/promise.js View 1 2 7 chunks +24 lines, -14 lines 0 comments Download
M src/runtime.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/runtime.cc View 2 chunks +15 lines, -8 lines 0 comments Download
D test/mjsunit/es6/debug-promise-events.js View 1 chunk +0 lines, -124 lines 0 comments Download
D test/mjsunit/es6/debug-promises-async-task-event.js View 1 chunk +0 lines, -61 lines 0 comments Download
D test/mjsunit/es6/debug-promises-caught-all.js View 1 chunk +0 lines, -56 lines 0 comments Download
D test/mjsunit/es6/debug-promises-caught-late.js View 1 chunk +0 lines, -38 lines 0 comments Download
D test/mjsunit/es6/debug-promises-caught-uncaught.js View 1 chunk +0 lines, -40 lines 0 comments Download
D test/mjsunit/es6/debug-promises-reentry.js View 1 chunk +0 lines, -17 lines 0 comments Download
D test/mjsunit/es6/debug-promises-throw-in-constructor.js View 1 chunk +0 lines, -46 lines 0 comments Download
D test/mjsunit/es6/debug-promises-throw-in-reject.js View 1 chunk +0 lines, -61 lines 0 comments Download
D test/mjsunit/es6/debug-promises-uncaught-all.js View 1 chunk +0 lines, -56 lines 0 comments Download
D test/mjsunit/es6/debug-promises-uncaught-uncaught.js View 1 chunk +0 lines, -55 lines 0 comments Download
D test/mjsunit/es6/debug-promises-undefined-reject.js View 1 chunk +0 lines, -57 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/async-task-event.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/events.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/reentry.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-after-resolve.js View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-caught-all.js View 1 chunk +72 lines, -0 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/reject-caught-late.js View 2 chunks +4 lines, -8 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/reject-caught-uncaught.js View 2 chunks +5 lines, -9 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/reject-in-constructor.js View 2 chunks +5 lines, -12 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-uncaught-all.js View 1 1 chunk +69 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-uncaught-late.js View 1 chunk +76 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-uncaught-uncaught.js View 1 chunk +69 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-with-invalid-reject.js View 1 chunk +78 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-with-throw-in-reject.js View 1 chunk +87 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises/reject-with-undefined-reject.js View 1 chunk +78 lines, -0 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/throw-caught-all.js View 4 chunks +28 lines, -13 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/throw-caught-late.js View 2 chunks +2 lines, -6 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/throw-caught-uncaught.js View 2 chunks +4 lines, -8 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/throw-in-constructor.js View 3 chunks +1 line, -7 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/throw-uncaught-all.js View 3 chunks +28 lines, -14 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/throw-uncaught-uncaught.js View 4 chunks +27 lines, -12 lines 0 comments Download
A test/mjsunit/es6/debug-promises/throw-with-throw-in-reject.js View 1 chunk +90 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises/throw-with-undefined-reject.js View 1 chunk +88 lines, -0 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/try-reject-in-constructor.js View 4 chunks +4 lines, -8 lines 0 comments Download
A + test/mjsunit/es6/debug-promises/try-throw-reject-in-constructor.js View 4 chunks +6 lines, -8 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 chunk +8 lines, -4 lines 0 comments Download
A + test/mjsunit/runtime-gen/debugpoppromise.js View 1 chunk +1 line, -1 line 0 comments Download
D test/mjsunit/runtime-gen/debugpromisehandleepilogue.js View 1 chunk +0 lines, -4 lines 0 comments Download
D test/mjsunit/runtime-gen/debugpromisehandleprologue.js View 1 chunk +0 lines, -5 lines 0 comments Download
A + test/mjsunit/runtime-gen/debugpromiserejectevent.js View 1 chunk +2 lines, -2 lines 0 comments Download
A + test/mjsunit/runtime-gen/debugpushpromise.js View 1 chunk +2 lines, -2 lines 0 comments Download
M tools/generate-runtime-tests.py View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yang
6 years, 4 months ago (2014-08-05 08:39:01 UTC) #1
Yang
On 2014/08/05 08:39:01, Yang wrote: Additional less important changes: - the promise is always passed ...
6 years, 4 months ago (2014-08-05 08:43:19 UTC) #2
aandrey
looking good, but i don't know V8 code well mind adding a test case with ...
6 years, 4 months ago (2014-08-05 11:59:39 UTC) #3
Yang
Thanks for the review. As already discussed, the thennable bug will be fixed separately from ...
6 years, 4 months ago (2014-08-05 12:56:04 UTC) #4
rossberg
LGTM with nits https://codereview.chromium.org/440773004/diff/1/src/promise.js File src/promise.js (right): https://codereview.chromium.org/440773004/diff/1/src/promise.js#newcode35 src/promise.js:35: var PromiseHasRejectHandler; Nit: move this up ...
6 years, 4 months ago (2014-08-05 13:35:08 UTC) #5
Yang
https://codereview.chromium.org/440773004/diff/1/src/promise.js File src/promise.js (right): https://codereview.chromium.org/440773004/diff/1/src/promise.js#newcode35 src/promise.js:35: var PromiseHasRejectHandler; On 2014/08/05 13:35:08, rossberg wrote: > Nit: ...
6 years, 4 months ago (2014-08-06 09:36:23 UTC) #6
Yang
6 years, 4 months ago (2014-08-06 09:42:36 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as 22913 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698