Summary: | Problem with ES6 class definition inside of function definition | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dan Bornstein <danfuzz> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | keith_miller, rniwa, saam |
Priority: | P2 | ||
Version: | Safari 9 | ||
Hardware: | Mac | ||
OS: | OS X 10.10 | ||
Bug Depends on: | |||
Bug Blocks: | 140491 |
Description
Dan Bornstein
2015-11-17 15:25:31 PST
Here's the version of StyleUtil.js in question: <https://github.com/danfuzz/mimu/blob/6042dc4014211eed2ba75354e5ed5361b998f07a/lib/StyleUtil.js> Looks like this works now in trunk (and Safari Technology Preview / WebKit Nightly if you want to verify). I believe this was the Class Name Scope change, since it looks like that is what was on line 39 (accessing the Class's Name from inside the class's block). Though I think that was, maybe you had tested in Safari and not a WebKit Nightly at the time. ES6 class syntax should use block scoping https://bugs.webkit.org/show_bug.cgi?id=142567 *** This bug has been marked as a duplicate of bug 142567 *** |