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

Issue 11364237: When using an Object as a set in Object.getOwnPropertyNames, null out the proto (Closed)

Created:
8 years, 1 month ago by adamk
Modified:
8 years, 1 month ago
Reviewers:
rossberg
CC:
v8-dev, rafaelw
Visibility:
Public.

Description

When using an Object as a set in Object.getOwnPropertyNames, null out the proto Also apply the same fix elsewhere in v8natives.js BUG=v8:2410 Committed: https://code.google.com/p/v8/source/detail?r=12982

Patch Set 1 #

Patch Set 2 : Added test case #

Patch Set 3 : Lint #

Total comments: 2

Patch Set 4 : Apply same fix elsewhere #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -14 lines) Patch
M src/v8natives.js View 1 2 3 3 chunks +3 lines, -3 lines 1 comment Download
A + test/mjsunit/regress/regress-2410.js View 1 2 1 chunk +8 lines, -11 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
adamk
Let me know if there's another reviewer we should be sending random JS fixes to...(this ...
8 years, 1 month ago (2012-11-14 21:52:36 UTC) #1
rossberg
Nice catch! https://codereview.chromium.org/11364237/diff/3001/src/v8natives.js File src/v8natives.js (right): https://codereview.chromium.org/11364237/diff/3001/src/v8natives.js#newcode1069 src/v8natives.js:1069: var attributesClone = {}; While you're at ...
8 years, 1 month ago (2012-11-15 14:23:10 UTC) #2
adamk
https://codereview.chromium.org/11364237/diff/3001/src/v8natives.js File src/v8natives.js (right): https://codereview.chromium.org/11364237/diff/3001/src/v8natives.js#newcode1069 src/v8natives.js:1069: var attributesClone = {}; On 2012/11/15 14:23:11, rossberg wrote: ...
8 years, 1 month ago (2012-11-15 14:33:30 UTC) #3
rossberg
On 2012/11/15 14:33:30, adamk wrote: > https://codereview.chromium.org/11364237/diff/3001/src/v8natives.js > File src/v8natives.js (right): > > https://codereview.chromium.org/11364237/diff/3001/src/v8natives.js#newcode1069 > ...
8 years, 1 month ago (2012-11-15 15:19:02 UTC) #4
adamk
Done.
8 years, 1 month ago (2012-11-15 15:36:23 UTC) #5
rossberg
8 years, 1 month ago (2012-11-15 15:39:36 UTC) #6
LGTM, will land.

https://codereview.chromium.org/11364237/diff/10001/src/v8natives.js
File src/v8natives.js (right):

https://codereview.chromium.org/11364237/diff/10001/src/v8natives.js#newcode973
src/v8natives.js:973: var names = { __proto__: null };  // TODO(rossberg): use
sets once they are ready.
Actually, this case was correct. ;)  But cannot harm either.

I'll fix the line length.

Powered by Google App Engine
This is Rietveld 408576698