[Webkit-unassigned] [Bug 140491] Implement ES6 class syntax

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 14 23:53:03 PST 2015


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

--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org> ---
Created attachment 244682
  --> https://bugs.webkit.org/attachment.cgi?id=244682&action=review
Super naive WIP 1

With this patch, the following code runs successfully.  I still need to add the support for super() as well as make the object initialization check (throw ReferenceError whenever this is accessed before the initialization) work.

class A {
    someMethod() { alert('hi'); }
    static someStaticMethod(o) { o.someMethod(); }
    constructor() {}
    static constructor() {}
};
class B extends A {
    constructor() { }
}
var b = new B();
A.someStaticMethod(b);

-- 
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/20150115/1f6ff604/attachment-0002.html>


More information about the webkit-unassigned mailing list