Web Inspector: Scope sidebar shows "Closure" instead of "Local" when paused in anonym...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2016 18:59:22 +0000 (18:59 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2016 18:59:22 +0000 (18:59 +0000)
commit1f775e462c6c1b8f583682888ed6151dec9464ed
tree2ef47129146fe7640242e03e8a9c0996c30dd2de
parent52cbbbe8a295bdc8610569a3c871b28ce0cfe540
Web Inspector: Scope sidebar shows "Closure" instead of "Local" when paused in anonymous function
https://bugs.webkit.org/show_bug.cgi?id=162113
<rdar://problem/28348954>

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-09-19
Reviewed by Brian Burg.

Source/WebInspectorUI:

* UserInterface/Models/CallFrame.js:
(WebInspector.CallFrame):
Default the functionName to the empty string. This will compare
favorably against other empty function names instead of null.

LayoutTests:

* inspector/debugger/paused-scopes-expected.txt:
* inspector/debugger/paused-scopes.html:
* inspector/debugger/resources/paused-scopes.js:
Add a third pause to test behavior paused inside an
unnamed anonymous function.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/debugger/paused-scopes-expected.txt
LayoutTests/inspector/debugger/paused-scopes.html
LayoutTests/inspector/debugger/resources/paused-scopes.js
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/CallFrame.js