Fix issue 6264 with a test case.
authorfeng@chromium.org <feng@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 15 Jan 2009 17:39:23 +0000 (17:39 +0000)
committerfeng@chromium.org <feng@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 15 Jan 2009 17:39:23 +0000 (17:39 +0000)
commit2cb36759ba643797ee0e616e5e0a5dcae1539658
tree81fc1adad3bbdb6db99fabd1d4e7beb337bb8dba
parent503c1c249c93661717a6fee40509607c7525b36c
Fix issue 6264 with a test case.

The problem is that Disable/EnableAccessCheck on an object may chnage its constructor's behavior
if object's map is the same as constructor's initial map. By copying maps, the constructor's
initial map is not changed.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1087 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
test/cctest/test-api.cc