...
Created attachment 290223 [details] patch
Comment on attachment 290223 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=290223&action=review r=me! > LayoutTests/js/parser-syntax-check-expected.txt:92 > +PASS Invalid: "function f() { a ? b }". Produced the following syntax error: "SyntaxError: Unexpected token '}'. Expected ':' in ternary operator." Some, like this one and others, end in a period and many others don't. A good follow-up would make them all consistent.
(In reply to comment #2) > Comment on attachment 290223 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=290223&action=review > > r=me! > > > LayoutTests/js/parser-syntax-check-expected.txt:92 > > +PASS Invalid: "function f() { a ? b }". Produced the following syntax error: "SyntaxError: Unexpected token '}'. Expected ':' in ternary operator." > > Some, like this one and others, end in a period and many others don't. A > good follow-up would make them all consistent. Indeed. Opened: https://bugs.webkit.org/show_bug.cgi?id=162742
landed in: https://trac.webkit.org/changeset/206594