Make arguments and caller always be null on native functions (fixes issue 1548 and...
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 1 Sep 2011 11:09:11 +0000 (11:09 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 1 Sep 2011 11:09:11 +0000 (11:09 +0000)
commit4e94cd8b08b7fe9324159a9838b72ecc60dc4afb
treedf91a30d6978281173c4755b11025ed05086994b
parentd02dfb301da1a952301ee24868cb1fd45a3fd3da
Make arguments and caller always be null on native functions (fixes issue 1548 and issue 1643).

With this change we follow Firefox, Safari has a slightly different approach where the property is just not there (at least according to GetOwnProperty).
Review URL: http://codereview.chromium.org/7792054

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