[Webkit-unassigned] [Bug 141737] Web Inspector: Typing object literal in the console causes a parse error

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 24 12:10:36 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=141737

--- Comment #4 from Joseph Pecoraro <joepeck at webkit.org> ---
I believe this also affects class expressions.

>   js> class foo {};
>   <-  SyntaxError: Unexpected keyword 'class'. Class declaration is not allowed in a lexically nested statement.

Which is pretty annoying.

I end up having to type `foo = class foo {}`.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150324/079aed49/attachment-0002.html>


More information about the webkit-unassigned mailing list