Fix Harmony sets and maps to allow undefined as keys.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Nov 2011 14:33:58 +0000 (14:33 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 3 Nov 2011 14:33:58 +0000 (14:33 +0000)
commit0bbfb46aa618d5087be385f74eab31b9b0f044cd
tree2253fc2a6a7320ff8317de092c81d553058ea47c
parentea185392445caed67d9e856ebcb02864e7837081
Fix Harmony sets and maps to allow undefined as keys.

This uses a global sentinel as a replacement for undefined keys, which
are not supported internally but required for Harmony sets and maps.

R=rossberg@chromium.org
BUG=v8:1622
TEST=mjsunit/harmony/collections

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

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