Check that constructor is a FunctionMirror before calling .name(), otherwise we may...
authoryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 13 Oct 2009 14:28:09 +0000 (14:28 +0000)
committeryurys@chromium.org <yurys@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 13 Oct 2009 14:28:09 +0000 (14:28 +0000)
commita2549c96e8fd258a79835468518dcfca01d59d71
tree028437fcfefc6c75ba1d2b2fbdaacdcc19f4bad7
parent292323b35563f5a6378e5bae19992e5b1abd335c
Check that constructor is a FunctionMirror before calling .name(), otherwise we may end up calling name method on a mirror object that doesn't have it.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3057 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/mirror-delay.js
test/mjsunit/debug-evaluate-bool-constructor.js [new file with mode: 0644]