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

Issue 7146010: Give correct error message when Object.isExtensible is called on a non object (fixes issue 1452) (Closed)

Created:
9 years, 6 months ago by Rico
Modified:
9 years, 6 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Geve correct error message when Object.isExtensible is called on a non object (fixes issue 1452) Committed: http://code.google.com/p/v8/source/detail?r=8275

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -17 lines) Patch
M src/messages.js View 1 1 chunk +1 line, -1 line 2 comments Download
M src/v8natives.js View 1 7 chunks +8 lines, -8 lines 2 comments Download
M test/cctest/test-api.cc View 1 4 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Rico
9 years, 6 months ago (2011-06-14 07:26:33 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/7146010/diff/1/src/v8natives.js File src/v8natives.js (right): http://codereview.chromium.org/7146010/diff/1/src/v8natives.js#newcode632 src/v8natives.js:632: throw MakeTypeError("define_disallowed", ["defineProperty"]); While you are at it ...
9 years, 6 months ago (2011-06-14 10:30:46 UTC) #2
Rico
Changed both error messages to take the parameter name
9 years, 6 months ago (2011-06-14 11:00:20 UTC) #3
Lasse Reichstein
LGTM http://codereview.chromium.org/7146010/diff/4/src/messages.js File src/messages.js (right): http://codereview.chromium.org/7146010/diff/4/src/messages.js#newcode193 src/messages.js:193: define_disallowed: ["Cannot define property ", "%0", ", object ...
9 years, 6 months ago (2011-06-14 11:17:15 UTC) #4
Rico
9 years, 6 months ago (2011-06-14 11:25:15 UTC) #5
http://codereview.chromium.org/7146010/diff/4/src/messages.js
File src/messages.js (right):

http://codereview.chromium.org/7146010/diff/4/src/messages.js#newcode193
src/messages.js:193: define_disallowed:            ["Cannot define property ",
"%0", ", object is not extensible."],
On 2011/06/14 11:17:15, Lasse Reichstein wrote:
> ':' after 'property' (or quotes around %0) to separate it from the sentence.

Done.

http://codereview.chromium.org/7146010/diff/4/src/v8natives.js
File src/v8natives.js (right):

http://codereview.chromium.org/7146010/diff/4/src/v8natives.js#newcode632
src/v8natives.js:632: throw MakeTypeError("define_disallowed", [ToString(p)]);
On 2011/06/14 11:17:15, Lasse Reichstein wrote:
> Here 'p' is always a primitive, right?

Done and below (yes, we already always called ToString on this before calling
this function)

Powered by Google App Engine
This is Rietveld 408576698