> function f() { const x = (1, 2); } > f function f() { const x = 1, 2; } > eval("" + f) SyntaxError: Parse error Tested with (Safari 3.1) and (ToT Debug/testkjs).
<rdar://problem/5806714>
Created attachment 19879 [details] Patch-fu!
Comment on attachment 19879 [details] Patch-fu! r=me. It'd be good if you could improve the grammar in the changelog entry (giant run-on sentences make me sad), and reference the bug URL in the layout test changelog too for easy reference.
M JavaScriptCore/ChangeLog M JavaScriptCore/kjs/nodes2string.cpp M LayoutTests/ChangeLog M LayoutTests/fast/js/function-toString-parentheses-expected.txt M LayoutTests/fast/js/resources/function-toString-parentheses.js Committed r31148