summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Class/derivedConstructorName.js
blob: 13d47addb48c0844bb7c926b61644b26a4c7c139 (plain)
1
2
3
4
5
6
7
8
9
10
11
class A {
    constructor() { }
}

class B extends A { }

var b = new B();
assertEq(b.constructor.name, "B");

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