Fixed issue 619 allowing Object.create to be called with a function.
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Sun, 9 May 2010 08:43:59 +0000 (08:43 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Sun, 9 May 2010 08:43:59 +0000 (08:43 +0000)
commit8d5119577811bbba41e0aeb9910b785965ff85cf
treeade7515133d3d9005b4b3261a64d5eebafba67bf
parent4c628ec1bc1bfa85d4d07f659547242be40753a3
Fixed issue 619 allowing Object.create to be called with a function.

This change allows Object.create to take a function as input in the
proto argument. The spec says that Type(O) for the proto argument
should be true but our IS_OBJECT does not check for this. I will make a
IS_SPEC_OBJECT in macros.py and refactor v8natives in another CL.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4622 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/v8natives.js
test/mjsunit/regress/regress-697.js [new file with mode: 0644]