RESOLVED FIXED 148557
Web Inspector: Type Profiler does not understand Functions within Default Argument Expressions
https://bugs.webkit.org/show_bug.cgi?id=148557
Summary Web Inspector: Type Profiler does not understand Functions within Default Arg...
Joseph Pecoraro
Reported 2015-08-27 21:45:10 PDT
* SUMMARY Type Profiler does not understand Functions within Default Argument Expressions. Default Argument Expressions are currently ignored by our SyntaxTree. * TESTS function testFunctionDeclaration(a=(function(alpha=999){return alpha})(), b=20) { return a + b; }; add2(); (function testFunctionExpression(a=(function(alpha=999){return alpha})(), b=20) { return a + b; })() * RESULTS Expected type bubbles for the inner `function(alpha)...` function expressions, but they were even visited by our annotator. * NOTES No errors or warnings.
Attachments
[PATCH] Proposed Fix (3.38 KB, patch)
2015-08-27 22:02 PDT, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2015-08-27 21:45:38 PDT
Joseph Pecoraro
Comment 2 2015-08-27 22:02:04 PDT
Created attachment 260119 [details] [PATCH] Proposed Fix
WebKit Commit Bot
Comment 3 2015-08-28 05:58:32 PDT
Comment on attachment 260119 [details] [PATCH] Proposed Fix Clearing flags on attachment: 260119 Committed r189096: <http://trac.webkit.org/changeset/189096>
WebKit Commit Bot
Comment 4 2015-08-28 05:58:38 PDT
All reviewed patches have been landed. Closing bug.
Saam Barati
Comment 5 2015-08-28 12:10:18 PDT
I wonder if the JSC implementation of the type profiler properly handles this. I don't think it does.
Note You need to log in before you can comment on or make changes to this bug.