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

Issue 448013005: ES6: Implement WeakMap and WeakSet constructor logic (Closed)

Created:
6 years, 4 months ago by arv (Not doing code reviews)
Modified:
6 years, 4 months ago
Reviewers:
adamk, rossberg
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

ES6: Implement WeakMap and WeakSet constructor logic Now that iterators are enabled by default we need to correctly handle the parameter for WeakMap and WeakSet. If provided then the argument is iterated over to add entries to the WeakMap and WeakSet. BUG=v8:3399 LOG=Y R=adamk@chromium.org, rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=22999

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -146 lines) Patch
M src/collection.js View 1 chunk +0 lines, -29 lines 0 comments Download
M src/v8natives.js View 1 chunk +30 lines, -0 lines 0 comments Download
M src/weak_collection.js View 2 chunks +52 lines, -8 lines 0 comments Download
M test/mjsunit/es6/collections.js View 9 chunks +146 lines, -109 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
arv (Not doing code reviews)
PTAL
6 years, 4 months ago (2014-08-07 20:09:51 UTC) #1
adamk
non-OWNER lgtm
6 years, 4 months ago (2014-08-07 20:20:09 UTC) #2
rossberg
LGTM, modulo one additional test. https://codereview.chromium.org/448013005/diff/1/test/mjsunit/es6/collections.js File test/mjsunit/es6/collections.js (right): https://codereview.chromium.org/448013005/diff/1/test/mjsunit/es6/collections.js#newcode1026 test/mjsunit/es6/collections.js:1026: // @@iterator result not ...
6 years, 4 months ago (2014-08-08 11:24:05 UTC) #3
rossberg
Committed patchset #1 manually as 22999 (presubmit successful).
6 years, 4 months ago (2014-08-08 13:39:21 UTC) #4
rossberg
On 2014/08/08 11:24:05, rossberg wrote: > LGTM, modulo one additional test. > > https://codereview.chromium.org/448013005/diff/1/test/mjsunit/es6/collections.js > ...
6 years, 4 months ago (2014-08-08 13:40:17 UTC) #5
arv (Not doing code reviews)
6 years, 4 months ago (2014-08-08 15:13:20 UTC) #6
Message was sent while issue was closed.
On 2014/08/08 at 13:40:17, rossberg wrote:
> On 2014/08/08 11:24:05, rossberg wrote:
> > LGTM, modulo one additional test.
> > 
> >
https://codereview.chromium.org/448013005/diff/1/test/mjsunit/es6/collections.js
> > File test/mjsunit/es6/collections.js (right):
> > 
> >
https://codereview.chromium.org/448013005/diff/1/test/mjsunit/es6/collections...
> > test/mjsunit/es6/collections.js:1026: // @@iterator result not object
> > Exclusively for weak maps and sets, we should also have a test where the
> > iterator returns some r where r.value is not an object (i.e., not a legal
key
> > for weak collections).
> 
> I landed it anyway, to sneak it into M38. But I'd appreciate if you could add
these tiny tests in a follow-up CL.

Thanks. Follow up CL with tests: https://codereview.chromium.org/451033003

Powered by Google App Engine
This is Rietveld 408576698