Fix the debugger for strict-mode functions.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 18 Jul 2011 14:29:50 +0000 (14:29 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 18 Jul 2011 14:29:50 +0000 (14:29 +0000)
commit6098abf46e804a8273b99cc0b4dacd0419a0601e
treeb0a318fecc26fb2279438e8afaacdbfdaf49b1b7
parent93c5c5fa23042b24b529cd193c1baacbce974c0d
Fix the debugger for strict-mode functions.

undefined is passed unchanged as the receiver for strict-mode
functions through call and apply. Also, if a strict-mode function is
called without an explicit receiver, undefined is passed as the
receiver (not the global object as for other functions).

R=vegorov@chromium.org
BUG=89236
TEST=mjsunit/debug-scopes.js

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8675 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/mirror-debugger.js
src/runtime.cc
test/mjsunit/debug-receiver.js [new file with mode: 0644]