Web Inspector: CRASH when debugger pauses inside a Promise handler
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Feb 2015 06:05:02 +0000 (06:05 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 Feb 2015 06:05:02 +0000 (06:05 +0000)
commit6bcf63af2c1bbd3ef300c46edb6f53ee7cd39f96
tree9d8d8b0b778f0d8b6b8932dfcfc1f732135002e5
parentf8dc029387ddfca4f6f7fa161372c458b0096cdb
Web Inspector: CRASH when debugger pauses inside a Promise handler
https://bugs.webkit.org/show_bug.cgi?id=141396

Reviewed by Mark Lam.

Source/JavaScriptCore:

For frames that don't have a scope, typically native frames, use the lexicalGlobalObject to
create the DebuggerScope for that frame.

* debugger/DebuggerCallFrame.cpp:
(JSC::DebuggerCallFrame::scope):

LayoutTests:

New test.

* inspector/debugger/breakpoint-scope-expected.txt: Added.
* inspector/debugger/breakpoint-scope.html: Added.
* inspector/debugger/resources/scope.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@180660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/debugger/breakpoint-scope-expected.txt [new file with mode: 0644]
LayoutTests/inspector/debugger/breakpoint-scope.html [new file with mode: 0644]
LayoutTests/inspector/debugger/resources/scope.js [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp