Bug 144034
Summary: | Web Inspector: cannot define an ES6 class from the console | ||
---|---|---|---|
Product: | WebKit | Reporter: | Brian Burg <burg> |
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | graouts, joepeck, jonowells, mattbaker, nvasilyev, rniwa, saam, timothy, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Brian Burg
"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
<rdar://problem/20645742>
Timothy Hatcher
*** This bug has been marked as a duplicate of bug 141737 ***
Joseph Pecoraro
FWIW the workaround is to assign:
js> MyClass = class MyClass { };
Joseph Pecoraro
Lets reopen this, as we are handling the Object case separately.
Joseph Pecoraro
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 ***