* 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.
<rdar://problem/22470013>
Created attachment 260119 [details] [PATCH] Proposed Fix
Comment on attachment 260119 [details] [PATCH] Proposed Fix Clearing flags on attachment: 260119 Committed r189096: <http://trac.webkit.org/changeset/189096>
All reviewed patches have been landed. Closing bug.
I wonder if the JSC implementation of the type profiler properly handles this. I don't think it does.