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

Issue 10830160: Fix crash bug when calling getV8Statistics(). (Closed)

Created:
8 years, 4 months ago by Yang
Modified:
8 years, 4 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Fix crash bug when calling getV8Statistics(). BUG=v8:2270 Committed: https://code.google.com/p/v8/source/detail?r=12255

Patch Set 1 #

Total comments: 1

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -26 lines) Patch
M src/extensions/statistics-extension.cc View 1 2 chunks +22 lines, -26 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Yang
PTAL.
8 years, 4 months ago (2012-08-03 13:48:52 UTC) #1
Michael Starzinger
LGTM (with a comment). http://codereview.chromium.org/10830160/diff/1/src/extensions/statistics-extension.cc File src/extensions/statistics-extension.cc (right): http://codereview.chromium.org/10830160/diff/1/src/extensions/statistics-extension.cc#newcode97 src/extensions/statistics-extension.cc:97: if (result->GetOwnPropertyNames()->Length() == 0) { ...
8 years, 4 months ago (2012-08-03 13:58:28 UTC) #2
Yang
8 years, 4 months ago (2012-08-03 14:03:21 UTC) #3
On 2012/08/03 13:58:28, Michael Starzinger wrote:
> LGTM (with a comment).
> 
>
http://codereview.chromium.org/10830160/diff/1/src/extensions/statistics-exte...
> File src/extensions/statistics-extension.cc (right):
> 
>
http://codereview.chromium.org/10830160/diff/1/src/extensions/statistics-exte...
> src/extensions/statistics-extension.cc:97: if
> (result->GetOwnPropertyNames()->Length() == 0) {
> Why do we need to throw an exception here? Wouldn't it be more JavaScript-ish
to
> just return the empty object?

Alright. Done. Committing.

Powered by Google App Engine
This is Rietveld 408576698