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

Issue 7858031: Don't allow seal or element property definition on external arrays. (Closed)

Created:
9 years, 3 months ago by danno
Modified:
9 years, 3 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Don't allow seal or element property re-definition on external arrays. R=ricow@chromium.org BUG=95920 TEST=test/mjsunit/regress/regress-95920.js Committed: http://code.google.com/p/v8/source/detail?r=9213

Patch Set 1 #

Patch Set 2 : tweaks #

Total comments: 3

Patch Set 3 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -0 lines) Patch
M src/messages.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-95920.js View 1 2 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
danno
PTAL
9 years, 3 months ago (2011-09-09 13:01:53 UTC) #1
Rico
9 years, 3 months ago (2011-09-09 13:40:58 UTC) #2
LGTM, what about calls from freeze and preventextension, the error message seems
wrong in this case. In addition, we should have test cases for them as well.

http://codereview.chromium.org/7858031/diff/1001/test/mjsunit/regress/regress...
File test/mjsunit/regress/regress-95920.js (right):

http://codereview.chromium.org/7858031/diff/1001/test/mjsunit/regress/regress...
test/mjsunit/regress/regress-95920.js:33: [0].every(function(){ Object.seal((new
Int8Array(42))); });
assertThrows?

http://codereview.chromium.org/7858031/diff/1001/test/mjsunit/regress/regress...
test/mjsunit/regress/regress-95920.js:34: assertTrue(false); // Should be
unreachable
assertUnreachable?

http://codereview.chromium.org/7858031/diff/1001/test/mjsunit/regress/regress...
test/mjsunit/regress/regress-95920.js:41: defineProperty(new Int8Array(42), "1",
{ writable: false, value: "1" });
same as above

Powered by Google App Engine
This is Rietveld 408576698