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

Issue 306463002: Don't clear exception pending message if we have externally TryCatch and finally on top of stack. (Closed)

Created:
6 years, 7 months ago by kozyatinskiy1
Modified:
6 years, 6 months ago
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

V8 can clear exception pending message, when should not do this. The case: v8::TryCatch try_catch; CompileRun(try { CEvaluate('throw 1;'); } finally {}); CHECK(try_catch.HasCaught()); CHECK(!try_catch.Message().IsEmpty()); CEvaluate is native call. Last check is not passed without patch. Patch contains test TryCatchFinallyStoresMessageUsingTryCatchHandler with more details. R=mstarzinger@chromium.org, vsevik@chromium.org, yangguo@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21697

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -21 lines) Patch
M src/isolate.h View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 5 chunks +26 lines, -19 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
kozyatinskiy1
6 years, 7 months ago (2014-05-26 12:13:25 UTC) #1
vsevik
Can we add a test? https://chromiumcodereview.appspot.com/306463002/diff/1/src/isolate.cc File src/isolate.cc (right): https://chromiumcodereview.appspot.com/306463002/diff/1/src/isolate.cc#newcode1727 src/isolate.cc:1727: // Return true. if ...
6 years, 6 months ago (2014-05-28 18:00:31 UTC) #2
kozyatinskiy1
On 2014/05/28 18:00:31, vsevik wrote: > Can we add a test? Yes, we can. Done. ...
6 years, 6 months ago (2014-05-29 10:26:25 UTC) #3
vsevik
https://chromiumcodereview.appspot.com/306463002/diff/20001/src/isolate.cc File src/isolate.cc (right): https://chromiumcodereview.appspot.com/306463002/diff/20001/src/isolate.cc#newcode1730 src/isolate.cc:1730: bool has_externaly_caught = HasExternallyCaught(); has_external_try_catch https://chromiumcodereview.appspot.com/306463002/diff/20001/src/isolate.cc#newcode1733 src/isolate.cc:1733: bool next_externaly_caught ...
6 years, 6 months ago (2014-06-02 09:19:55 UTC) #4
kozyatinskiy1
On 2014/06/02 09:19:55, vsevik wrote: > https://chromiumcodereview.appspot.com/306463002/diff/20001/src/isolate.cc > File src/isolate.cc (right): > > https://chromiumcodereview.appspot.com/306463002/diff/20001/src/isolate.cc#newcode1730 > ...
6 years, 6 months ago (2014-06-02 09:50:53 UTC) #5
vsevik
lgtm
6 years, 6 months ago (2014-06-02 14:53:29 UTC) #6
vsevik
yangguo@, Could you please have a look on this?
6 years, 6 months ago (2014-06-02 14:54:00 UTC) #7
Yang
Looking good. I got some comments. And I would like to add mstarzinger@ for a ...
6 years, 6 months ago (2014-06-02 15:21:16 UTC) #8
vsevik
https://chromiumcodereview.appspot.com/306463002/diff/60001/src/isolate.cc File src/isolate.cc (left): https://chromiumcodereview.appspot.com/306463002/diff/60001/src/isolate.cc#oldcode1157 src/isolate.cc:1157: if (!is_catchable_by_javascript(pending_exception())) { Looking at this once again I ...
6 years, 6 months ago (2014-06-02 15:31:27 UTC) #9
kozyatinskiy1
On 2014/06/02 15:21:16, Yang wrote: > Looking good. I got some comments. And I would ...
6 years, 6 months ago (2014-06-03 09:14:58 UTC) #10
Yang
LGTM from my side, but please wait for Michael to take a look. I'll ask ...
6 years, 6 months ago (2014-06-04 07:21:34 UTC) #11
Michael Starzinger
LGTM from my end as well. Just nits. Sorry for the delay. https://codereview.chromium.org/306463002/diff/80001/src/isolate.h File src/isolate.h ...
6 years, 6 months ago (2014-06-05 11:02:08 UTC) #12
kozyatinskiy1
> https://codereview.chromium.org/306463002/diff/80001/src/isolate.h > File src/isolate.h (right): > > https://codereview.chromium.org/306463002/diff/80001/src/isolate.h#newcode1182 > src/isolate.h:1182: // Propagate pending exception ...
6 years, 6 months ago (2014-06-05 12:33:00 UTC) #13
yurys
6 years, 6 months ago (2014-06-05 13:08:01 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 manually as r21697.

Powered by Google App Engine
This is Rietveld 408576698