WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 150752
144034
Web Inspector: cannot define an ES6 class from the console
https://bugs.webkit.org/show_bug.cgi?id=144034
Summary
Web Inspector: cannot define an ES6 class from the console
Brian Burg
Reported
2015-04-21 20:02:08 PDT
"Class declaration is not allowed in a lexically nested statement." We do some wrapping, which prevents this from working. It would be great if it did work. Is there an easy fix?
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-04-21 20:02:39 PDT
<
rdar://problem/20645742
>
Timothy Hatcher
Comment 2
2015-04-22 07:43:32 PDT
*** This bug has been marked as a duplicate of
bug 141737
***
Joseph Pecoraro
Comment 3
2015-04-22 13:28:12 PDT
FWIW the workaround is to assign: js> MyClass = class MyClass { };
Joseph Pecoraro
Comment 4
2015-12-15 18:34:13 PST
Lets reopen this, as we are handling the Object case separately.
Joseph Pecoraro
Comment 5
2016-05-05 22:29:39 PDT
Forward duping to the more generic bug about `let` and `const` in the Console.
Bug 150752
. *** This bug has been marked as a duplicate of
bug 150752
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug