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

Issue 249503002: Trigger debug event on not yet caught exception in promises. (Closed)

Created:
6 years, 8 months ago by Yang
Modified:
6 years, 7 months ago
Reviewers:
aandrey, rossberg, yurys
CC:
v8-dev, Alexandra Mikhaylova, aandrey
Visibility:
Public.

Description

Trigger debug event on not yet caught exception in promises. R=aandrey@chromium.org, rossberg@chromium.org, yurys@chromium.org BUG=v8:3093 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=20956

Patch Set 1 #

Total comments: 18

Patch Set 2 : addressed comments #

Total comments: 3

Patch Set 3 : second round of comments #

Total comments: 5

Patch Set 4 : test cases #

Patch Set 5 : undefined value for promise. #

Patch Set 6 : one more test case. #

Total comments: 7

Patch Set 7 : addressed comments #

Patch Set 8 : always use original exception #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -20 lines) Patch
M include/v8-debug.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/debug.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M src/debug.cc View 1 2 3 4 3 chunks +17 lines, -5 lines 0 comments Download
M src/debug-debugger.js View 1 3 chunks +11 lines, -4 lines 1 comment Download
M src/execution.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/promise.js View 1 2 3 4 5 6 7 1 chunk +16 lines, -3 lines 0 comments Download
M src/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 3 chunks +13 lines, -2 lines 0 comments Download
A test/mjsunit/es6/debug-promises-caught-all.js View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises-caught-uncaught.js View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises-throw-in-reject.js View 1 2 3 4 5 6 7 1 chunk +61 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises-uncaught-all.js View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises-uncaught-uncaught.js View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A test/mjsunit/es6/debug-promises-undefined-reject.js View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Yang
First draft of this. I still have to write a test case for a custom ...
6 years, 8 months ago (2014-04-23 14:57:33 UTC) #1
rossberg
Mostly ok, but please rename all those 'deferred_promise' into plain 'promise'. https://codereview.chromium.org/249503002/diff/1/src/debug-debugger.js File src/debug-debugger.js (right): ...
6 years, 8 months ago (2014-04-24 07:27:36 UTC) #2
yurys
Looks OK overall, +aandrey who may have some input. https://codereview.chromium.org/249503002/diff/1/src/runtime.cc File src/runtime.cc (right): https://codereview.chromium.org/249503002/diff/1/src/runtime.cc#newcode5660 src/runtime.cc:5660: ...
6 years, 8 months ago (2014-04-24 07:48:43 UTC) #3
Yang
Test case for custom deferred promise still missing. Addressed comments for now. https://codereview.chromium.org/249503002/diff/1/src/runtime.cc File src/runtime.cc ...
6 years, 8 months ago (2014-04-24 07:59:59 UTC) #4
rossberg
https://codereview.chromium.org/249503002/diff/1/src/runtime.cc File src/runtime.cc (right): https://codereview.chromium.org/249503002/diff/1/src/runtime.cc#newcode5657 src/runtime.cc:5657: HandleScope scope(isolate); On 2014/04/24 07:27:36, rossberg wrote: > Why ...
6 years, 8 months ago (2014-04-24 08:08:38 UTC) #5
yurys
https://codereview.chromium.org/249503002/diff/1/src/runtime.cc File src/runtime.cc (right): https://codereview.chromium.org/249503002/diff/1/src/runtime.cc#newcode5660 src/runtime.cc:5660: isolate->debugger()->OnException(exception, false, deferred_promise); On 2014/04/24 07:59:59, Yang wrote: > ...
6 years, 8 months ago (2014-04-24 08:49:49 UTC) #6
Yang
I added the test case for custom deferred promise and the ones for setBreakOnUncaughtException.
6 years, 8 months ago (2014-04-24 10:40:12 UTC) #7
Yang
https://codereview.chromium.org/249503002/diff/1/src/runtime.cc File src/runtime.cc (right): https://codereview.chromium.org/249503002/diff/1/src/runtime.cc#newcode5659 src/runtime.cc:5659: CONVERT_ARG_HANDLE_CHECKED(Object, deferred_promise, 1); On 2014/04/24 07:27:36, rossberg wrote: > ...
6 years, 8 months ago (2014-04-24 10:42:04 UTC) #8
yurys
On 2014/04/24 10:40:12, Yang wrote: > I added the test case for custom deferred promise ...
6 years, 8 months ago (2014-04-24 11:01:15 UTC) #9
aandrey
lgtm https://codereview.chromium.org/249503002/diff/40001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/249503002/diff/40001/src/debug.cc#newcode2700 src/debug.cc:2700: promise = isolate_->factory()->undefined_value(); maybe set undefined to promise ...
6 years, 8 months ago (2014-04-24 11:04:58 UTC) #10
Yang
Uploaded a new patch set. The rest of the comments are already dealt with in ...
6 years, 8 months ago (2014-04-24 11:13:47 UTC) #11
Yang
On 2014/04/24 11:13:47, Yang wrote: > Uploaded a new patch set. The rest of the ...
6 years, 8 months ago (2014-04-24 13:40:43 UTC) #12
rossberg
https://codereview.chromium.org/249503002/diff/100001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/249503002/diff/100001/src/promise.js#newcode185 src/promise.js:185: nit: spurious new line https://codereview.chromium.org/249503002/diff/100001/src/promise.js#newcode197 src/promise.js:197: if (!IS_SPEC_FUNCTION(deferred.reject)) { ...
6 years, 8 months ago (2014-04-24 14:33:47 UTC) #13
Yang
https://codereview.chromium.org/249503002/diff/100001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/249503002/diff/100001/src/promise.js#newcode185 src/promise.js:185: On 2014/04/24 14:33:47, rossberg wrote: > nit: spurious new ...
6 years, 8 months ago (2014-04-24 14:44:53 UTC) #14
rossberg
https://codereview.chromium.org/249503002/diff/100001/src/promise.js File src/promise.js (right): https://codereview.chromium.org/249503002/diff/100001/src/promise.js#newcode197 src/promise.js:197: if (!IS_SPEC_FUNCTION(deferred.reject)) { On 2014/04/24 14:44:53, Yang wrote: > ...
6 years, 8 months ago (2014-04-24 14:56:51 UTC) #15
Yang
On 2014/04/24 14:56:51, rossberg wrote: > https://codereview.chromium.org/249503002/diff/100001/src/promise.js > File src/promise.js (right): > > https://codereview.chromium.org/249503002/diff/100001/src/promise.js#newcode197 > ...
6 years, 8 months ago (2014-04-24 15:05:33 UTC) #16
Yang
On 2014/04/24 15:05:33, Yang wrote: > On 2014/04/24 14:56:51, rossberg wrote: > > https://codereview.chromium.org/249503002/diff/100001/src/promise.js > ...
6 years, 8 months ago (2014-04-24 15:08:44 UTC) #17
rossberg
lgtm
6 years, 8 months ago (2014-04-24 15:10:42 UTC) #18
Yang
Committed patchset #8 manually as r20956 (presubmit successful).
6 years, 8 months ago (2014-04-25 07:03:23 UTC) #19
aandrey
6 years, 7 months ago (2014-04-29 13:04:36 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/249503002/diff/140001/src/debug-debugger.js
File src/debug-debugger.js (right):

https://codereview.chromium.org/249503002/diff/140001/src/debug-debugger.js#n...
src/debug-debugger.js:46: PendingExceptionInPromise: 7 };
Is it OK that this does not match the DebugEvent enum name
"UncaughtExceptionInPromise" defined in v8-debug.h?

Powered by Google App Engine
This is Rietveld 408576698