Don't exchange null and undefined with the global object in function.prototype.{call...
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 3 May 2011 13:19:04 +0000 (13:19 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 3 May 2011 13:19:04 +0000 (13:19 +0000)
commit2b730c2bf6d5628e9c8528605469d309bced84eb
tree6b1e64bf332629d6ba142d2d1f6144fb09d83362
parent569574b7bffd3ade312d9f848e3fa14f442a1bef
Don't exchange null and undefined with the global object in function.prototype.{call, apply} for natives.

This makes us compatible with firefox in throwing an exception when
call is invoked on a builtin with null as the this argument.
Review URL: http://codereview.chromium.org/6902104

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7763 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array.js
src/date.js
src/ia32/builtins-ia32.cc
src/messages.js
src/string.js
src/v8natives.js
test/es5conform/es5conform.status
test/mjsunit/function-call.js [new file with mode: 0644]
test/mjsunit/regress/regress-485.js
test/mozilla/mozilla.status
test/sputnik/sputnik.status