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

Issue 7631039: Use InternalArray in Object.defineProperties to avoid issues with overwriten properties on Array.... (Closed)

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

Description

Use InternalArray in Object.defineProperties to avoid issues with overwriten properties on Array.prototype TEST=mjsunit/regress/regress-1625 BUG=v8:1625 Committed: http://code.google.com/p/v8/source/detail?r=8964

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -13 lines) Patch
M src/v8natives.js View 1 1 chunk +18 lines, -13 lines 3 comments Download
A test/mjsunit/regress/regress-1625.js View 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Rico
9 years, 4 months ago (2011-08-18 06:41:31 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/7631039/diff/1/src/v8natives.js File src/v8natives.js (right): http://codereview.chromium.org/7631039/diff/1/src/v8natives.js#newcode1024 src/v8natives.js:1024: for (var key in props) { How about ...
9 years, 4 months ago (2011-08-18 06:56:41 UTC) #2
Rico
please have another look, refactored the function
9 years, 4 months ago (2011-08-18 08:32:10 UTC) #3
Lasse Reichstein
9 years, 4 months ago (2011-08-18 08:35:22 UTC) #4
LGTM

http://codereview.chromium.org/7631039/diff/6/src/v8natives.js
File src/v8natives.js (right):

http://codereview.chromium.org/7631039/diff/6/src/v8natives.js#newcode1018
src/v8natives.js:1018: function GetOwnPropertyNames(properties) {
Put "Enuerable" in the name somewhere.

http://codereview.chromium.org/7631039/diff/6/src/v8natives.js#newcode1020
src/v8natives.js:1020: for (var key in properties) {
I was hoping there would be a way to get the own property names without getting
all inherited properties and then discarding hem again. But this is a good
refactoring to start with.

http://codereview.chromium.org/7631039/diff/6/src/v8natives.js#newcode1021
src/v8natives.js:1021: global.print("key: " + key);
Without the prints? :)

Powered by Google App Engine
This is Rietveld 408576698