WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152280
Web Inspector: Stack traces in console incorrectly show "(anonymous function)" for global code
https://bugs.webkit.org/show_bug.cgi?id=152280
Summary
Web Inspector: Stack traces in console incorrectly show "(anonymous function)...
Joseph Pecoraro
Reported
2015-12-14 16:10:39 PST
* SUMMARY Stack traces in console incorrectly show "(anonymous function)" for global code. * TEST <script> function foo() { bar(); } function bar() { console.trace(); } foo(); </script> * STEPS TO REPRODUCE 1. Open test case 2. Show Console in inspector => trace output lists "(anonymous function)" at global code level. This is wrong / incorrect.
Attachments
[PATCH] Proposed Fix
(19.12 KB, patch)
2015-12-14 16:13 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[IMAGE] Before
(66.46 KB, image/png)
2015-12-14 16:13 PST
,
Joseph Pecoraro
no flags
Details
[IMAGE] After
(65.38 KB, image/png)
2015-12-14 16:13 PST
,
Joseph Pecoraro
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-12-14 16:11:40 PST
<
rdar://problem/23891615
>
Joseph Pecoraro
Comment 2
2015-12-14 16:13:02 PST
Created
attachment 267324
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2015-12-14 16:13:14 PST
Created
attachment 267325
[details]
[IMAGE] Before
Joseph Pecoraro
Comment 4
2015-12-14 16:13:26 PST
Created
attachment 267327
[details]
[IMAGE] After
Blaze Burg
Comment 5
2015-12-14 16:26:56 PST
Comment on
attachment 267324
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=267324&action=review
r=me I will note for posterity that I don't like the name "program" for a top-level evaluation. I prefer (evaluation), (module evaluation), (global evaluation), etc. If we had a fake call frame for the vm entry method (rAF, parsing, events, etc) then we could use that as the "program" call frame in the UI.
> Source/WebInspectorUI/UserInterface/Models/CallFrame.js:135 > + var functionName = payload.functionName;
Nit: let
WebKit Commit Bot
Comment 6
2015-12-14 17:14:59 PST
Comment on
attachment 267324
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 267324 Committed
r194083
: <
http://trac.webkit.org/changeset/194083
>
WebKit Commit Bot
Comment 7
2015-12-14 17:15:03 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug