[webkit-reviews] review requested: [Bug 13623] Decompilation of function doesn't compile with "++(x, y)" : [Attachment 14702] Patch for toString()ing pre/postfix/typeof operators that contain grouping expression

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 24 06:37:46 PDT 2007


Kimmo Kinnunen <kimmok at iki.fi> has asked  for review:
Bug 13623: Decompilation of function doesn't compile with "++(x,y)"
http://bugs.webkit.org/show_bug.cgi?id=13623

Attachment 14702: Patch for toString()ing pre/postfix/typeof operators that
contain grouping expression
http://bugs.webkit.org/attachment.cgi?id=14702&action=edit

------- Additional Comments from Kimmo Kinnunen <kimmok at iki.fi>
The patch makes errors like these produce run-time exception similar to the
other varians of this error, like "function f() { (g())++; }"

SyntaxError for eval("function() {++x, y; }") is another issue, caused by
treating 'function' as function declaration and not function expression.
Firefox treats anonymous functions that appear in SourceElement context as 
function expressions.



More information about the webkit-reviews mailing list