Allow eval to be overridden with a callable non-function object.
authorvitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Mar 2011 19:05:06 +0000 (19:05 +0000)
committervitalyr@chromium.org <vitalyr@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Mar 2011 19:05:06 +0000 (19:05 +0000)
commitd9b0c93d230c35f16c2686ad87ba0547de7d3047
tree1f6d444268ef576d9e218185652985e68f4b4b4a
parent60711c074fc66fe6b6cd2284fb11466218ebf6fe
Allow eval to be overridden with a callable non-function object.

We simply need to remove early checks in the resolve eval runtime
functions. CallFunctionStub that follows will handle non-functions in
the right way.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7005 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
test/mjsunit/override-eval-with-non-function.js [new file with mode: 0644]