summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/superPropHeavyweightArrow.js
blob: ce30690d539dd8b6403e6098c333c05bf20713e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class foo {
    constructor() { }

    method() {
        return (() => (eval(''), super.toString));
    }
}

assertEq(new foo().method()(), Object.prototype.toString);

if (typeof reportCompare === "function")
    reportCompare(0,0,"OK");