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

Issue 1717893002: Remove the Proxy enumerate trap (Closed)

Created:
4 years, 10 months ago by Dan Ehrenberg
Modified:
4 years, 9 months ago
Reviewers:
Camillo Bruni, adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Remove the Proxy enumerate trap In ES2016, the Proxy enumerate trap is removed. This patch changes for-in iteration on Proxies to use the ownKeys trap. Due to the clean organization of that code, the patch basically consists of deletions. R=adamk LOG=Y BUG=v8:4768 Committed: https://crrev.com/579c01072d29cf87ad1d7cc09257c34b7925a96a Cr-Commit-Position: refs/heads/master@{#34200}

Patch Set 1 #

Patch Set 2 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -264 lines) Patch
M src/contexts.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/js/proxy.js View 3 chunks +0 lines, -39 lines 0 comments Download
M src/objects.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M src/objects.cc View 1 2 chunks +3 lines, -57 lines 0 comments Download
M test/mjsunit/for-in-opt.js View 1 3 chunks +7 lines, -7 lines 0 comments Download
M test/mjsunit/harmony/debug-stepin-proxies.js View 3 chunks +0 lines, -17 lines 0 comments Download
D test/mjsunit/harmony/proxies-enumerate.js View 1 chunk +0 lines, -109 lines 0 comments Download
M test/mjsunit/harmony/proxies-for.js View 5 chunks +19 lines, -28 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Dan Ehrenberg
4 years, 10 months ago (2016-02-20 01:09:18 UTC) #1
adamk
lgtm
4 years, 10 months ago (2016-02-20 01:54:17 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717893002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717893002/1
4 years, 10 months ago (2016-02-22 19:11:59 UTC) #5
Camillo Bruni
lgtm that was indeed easier than it would sound at first :). Too bad they ...
4 years, 10 months ago (2016-02-22 19:22:50 UTC) #6
Dan Ehrenberg
On 2016/02/22 at 19:22:50, cbruni wrote: > lgtm > > that was indeed easier than ...
4 years, 10 months ago (2016-02-22 19:27:08 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/1731) v8_linux64_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 10 months ago (2016-02-22 19:29:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717893002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717893002/20001
4 years, 10 months ago (2016-02-22 20:45:53 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-22 21:09:54 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/579c01072d29cf87ad1d7cc09257c34b7925a96a Cr-Commit-Position: refs/heads/master@{#34200}
4 years, 10 months ago (2016-02-22 21:11:42 UTC) #15
Camillo Bruni
On 2016/02/22 at 21:11:42, commit-bot wrote: > Patchset 2 (id:??) landed as https://crrev.com/579c01072d29cf87ad1d7cc09257c34b7925a96a > Cr-Commit-Position: ...
4 years, 9 months ago (2016-03-01 09:55:11 UTC) #16
Dan Ehrenberg
4 years, 9 months ago (2016-03-01 16:33:31 UTC) #17
Message was sent while issue was closed.
On 2016/03/01 at 09:55:11, cbruni wrote:
> On 2016/02/22 at 21:11:42, commit-bot wrote:
> > Patchset 2 (id:??) landed as
https://crrev.com/579c01072d29cf87ad1d7cc09257c34b7925a96a
> > Cr-Commit-Position: refs/heads/master@{#34200}
> 
> seems like we missed some cases again which I didn't spot earlier ;)
> 
> target = {a:true};
> target.__proto__ = {b:true};
> proxy = new Proxy(target, {});
> // for-in should now see a and b.

Oops, should've added a test here. Sorry about that.

Powered by Google App Engine
This is Rietveld 408576698