Ensure that the length property of bound functions are actual unique
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Aug 2011 12:44:17 +0000 (12:44 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 3 Aug 2011 12:44:17 +0000 (12:44 +0000)
commit9721eddc1f8b8599a795baf33d9a24d601d1f1c8
treef67ad10f43c4444b7b505adfe1c9048bb45e357d
parenta2eaf852a9622583c85e668ba3b1ec93f9a1b96d
Ensure that the length property of bound functions are actual unique
for the individually bound functions.

Our existing code will generate a new function on every call to bind,
but it will use the same shared function. When setting the lenght this
will be set on the shared function, i.e., the length of all bound
functions will be that of the last bound function.
Review URL: http://codereview.chromium.org/7475002

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