summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/class/stringConstructor.js
blob: 4e8ae3331fce0de55e5b783f435f199ccd83ccef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class A {
    "constructor"() { return {}; }
}
assertEq(new A() instanceof A, false);

class B extends class { } {
    "constructor"() { return {}; }
}
assertEq(new B() instanceof B, false);

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