Fix some bugs in Function.prototype.bind implementation.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 27 Jul 2010 09:20:21 +0000 (09:20 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 27 Jul 2010 09:20:21 +0000 (09:20 +0000)
commit539142a161b661eca139a6866c562dbd90fccb7d
treee8bc55b24dbe8a5550dca465e9d7dd6ba9a1d6b3
parent3f0d383db652810d909fd9e5b7d5fa90c804a862
Fix some bugs in Function.prototype.bind implementation.
Correctly handle not passing thisArg.
Fixes to NewObjectFromBound to use correct argument count, not leak memory,
and handle constructors that throw exceptions.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5137 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
src/v8natives.js