Fix issue with prototype of WeakMap constructor.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Aug 2011 12:09:47 +0000 (12:09 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 16 Aug 2011 12:09:47 +0000 (12:09 +0000)
commitd640d8d9130cb410db21f7a433ec5412375913a8
treea520e6385e06d573bdaf1816efaa99b039a5a7a5
parentfc17bd37958ea1d2e6644e78bdc8df5e370dc655
Fix issue with prototype of WeakMap constructor.

The WeakMap constructor didn't have a unique prototype, so it shared one with
Object. All WeakMap functions (including "get" and "set") were installed on
that prototype.

R=rossberg@chromium.org
BUG=v8:1617
TEST=mjsunit/harmony/weakmaps

Review URL: http://codereview.chromium.org/7658008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8941 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/weakmap.js
test/mjsunit/harmony/weakmaps.js