summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorArrowEvalBinding.js
blob: d6b15baab32e5c2b456686bcc553875e9aea6990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Make sure it doesn't matter when we make the arrow function
new class extends class { } {
    constructor() {
        let arrow = () => this;
        assertThrowsInstanceOf(arrow, ReferenceError);
        super();
        assertEq(arrow(), this);
    }
}();

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