[Webkit-unassigned] [Bug 142840] New: ES6 Classes: Extends should accept an expression without parenthesis
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 18 14:38:57 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=142840
Bug ID: 142840
Summary: ES6 Classes: Extends should accept an expression
without parenthesis
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: joepeck at webkit.org
CC: ggaren at apple.com, rniwa at webkit.org
* TEST:
var namespace = {};
namespace.A = class A { constructor() { console.log("a"); } };
namespace.B = class B extends namespace.A { constructor() { super(); console.log("b"); } };
new namespace.B();
* EXPECTED
Logs for "a" and "b"
* ACTUAL
SyntaxError: Unexpected token '.'. Expected opening '{' at the start of a class body.
* NOTES
- Workaround: "class B extends (namespace.A) { ... }"
- Works in Chrome 43. I don't know how to test Firefox with Classes.
--
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/20150318/784698e4/attachment-0002.html>
More information about the webkit-unassigned
mailing list