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

    method() {
        return (() => eval('super.toString'));
    }
}
assertEq(new foo().method()(), Object.prototype.toString);

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