[Webkit-unassigned] [Bug 152575] [ES6] Arrow function syntax. Lexical bind "super" inside of the arrow function in generator.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 2 23:50:42 PST 2016


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

--- Comment #1 from GSkachkov <gskachkov at gmail.com> ---
We are already supporting arguments in arrow function in generators.
Modified test example:

var result = 'some-value';
class B {
    gen() {
        return result;
    }
}

class A extends B {
    *gen() {
        let arr = () => super.gen();
        return arr();
    }
}

var a = new A();

a.gen().next().value === result; //Should be true now it is : SyntaxErorr: super can only be used in a method of a derived class

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160303/6cd18c94/attachment.html>


More information about the webkit-unassigned mailing list