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

Issue 10693095: Don't miss error message in 'restart frame' debug action (Closed)

Created:
8 years, 5 months ago by Peter Rybin
Modified:
8 years, 5 months ago
Reviewers:
Yang
CC:
v8-dev
Visibility:
Public.

Description

Don't miss error message in 'restart frame' debug action Committed: https://code.google.com/p/v8/source/detail?r=12074

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M src/liveedit.cc View 1 chunk +8 lines, -1 line 1 comment Download

Messages

Total messages: 3 (0 generated)
Peter Rybin
8 years, 5 months ago (2012-07-04 17:41:13 UTC) #1
Yang
LGTM with comment. http://codereview.chromium.org/10693095/diff/1/src/liveedit.cc File src/liveedit.cc (right): http://codereview.chromium.org/10693095/diff/1/src/liveedit.cc#newcode1834 src/liveedit.cc:1834: return NULL; Could be shorter: if ...
8 years, 5 months ago (2012-07-05 08:51:16 UTC) #2
Peter Rybin
8 years, 5 months ago (2012-07-13 09:00:37 UTC) #3
On 2012/07/05 08:51:16, Yang wrote:
> LGTM with comment.
> 
> http://codereview.chromium.org/10693095/diff/1/src/liveedit.cc
> File src/liveedit.cc (right):
> 
> http://codereview.chromium.org/10693095/diff/1/src/liveedit.cc#newcode1834
> src/liveedit.cc:1834: return NULL;
> Could be shorter:
> 
> if (result == NULL &&
>     target.saved_status() == [etc.]) {
>   return [error message];
> }
> return result;

Yes. Thanks you. But the first return is sort of a formal construction --
"rethrowing" error code. I'd like to keep it this way even for the price of
couple of lines.

Powered by Google App Engine
This is Rietveld 408576698