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

Issue 21400002: Calling Map etc without new should throw TypeError (Closed)

Created:
7 years, 4 months ago by arv (Not doing code reviews)
Modified:
7 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Calling Map etc without new should throw TypeError Even though we do not yet allow Map, Set, WeakMap and WeakSet to be subclassed we need to ensure that we do not allow them to be [[Call]]ed to allow them to be subclassed in the future. BUG=v8:2819 R=dslomov@chromium.org, mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16006

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -13 lines) Patch
M src/collection.js View 4 chunks +4 lines, -4 lines 0 comments Download
M test/mjsunit/harmony/collections.js View 2 chunks +4 lines, -5 lines 0 comments Download
M test/mjsunit/harmony/proxies-example-membrane.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/harmony/proxies-hash.js View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
arv (Not doing code reviews)
7 years, 4 months ago (2013-07-31 21:24:35 UTC) #1
Dmitry Lomov (no reviews)
lgtm
7 years, 4 months ago (2013-08-01 08:06:40 UTC) #2
Michael Starzinger
IIUC the Map method should be callable (even as non-constructor) if the receiver object has ...
7 years, 4 months ago (2013-08-01 08:06:52 UTC) #3
Dmitry Lomov (no reviews)
On 2013/08/01 08:06:52, Michael Starzinger wrote: > IIUC the Map method should be callable (even ...
7 years, 4 months ago (2013-08-01 08:19:40 UTC) #4
Michael Starzinger
OK, as discussed offline with Dmitry: I can be convinced to land this change and ...
7 years, 4 months ago (2013-08-01 08:32:09 UTC) #5
Dmitry Lomov (no reviews)
Discussed offline, but putting this here for the record: the new behavior is better because ...
7 years, 4 months ago (2013-08-01 09:12:03 UTC) #6
Dmitry Lomov (no reviews)
Committed patchset #1 manually as r16006 (presubmit successful).
7 years, 4 months ago (2013-08-01 09:18:34 UTC) #7
danno
NOT lgtm. Why the change for an experimental feature that we don't make any promises ...
7 years, 4 months ago (2013-08-01 16:17:13 UTC) #8
danno
7 years, 4 months ago (2013-08-02 08:12:47 UTC) #9
Message was sent while issue was closed.
OK, sorry, my bad. This was clarified in an offline thread, the context of the
issues wasn't initially clear to me. Lgtm, too. :-)

Powered by Google App Engine
This is Rietveld 408576698