Lines Matching refs:must_throw
16 function must_throw (str) {
49 must_throw ("class B extends 5 + 6 + 5 { constructor (a, b) { super (a) } }");
51 must_throw ("class B extends null { constructor () { super () } }; new B");
53 must_throw ("var o = { a : 5 }; \
57 must_throw ("class B extends A { constructor (a, b) { this.b = b} } \
60 must_throw ("class B extends A { constructor (a, b) { super.f () } } \
63 must_throw ("class B extends A { constructor (a, b) { eval ('this.b = b') } } \
66 must_throw ("class B extends A { constructor (a, b) { eval ('super.f ()') } } \
69 must_throw ("class B extends A { constructor (a, b) { super (a); super (a); } } \
72 must_throw ("class B extends A { constructor (a, b) { eval ('super (a)'); eval ('super (a)'); } } \
75 must_throw ("class B extends A { constructor (a, b) { super (a) } g () { super (a) } } \
78 must_throw ("class B extends A { constructor (a, b) { super (a) } g () { eval ('super (a)') } } \
82 must_throw ("class B extends A { constructor (a, b) { super (a) } g () { return function () { return super.f () } } } \
86 must_throw ("class B extends A { constructor (a, b) { super (a) } \
91 must_throw ("class B extends A { constructor (a, b) { super (a) } \
96 must_throw ("class A extends Array { constructor () { return 5; } }; new A");
98 must_throw ("class A extends Array { constructor () { return undefined; } }; new A");
100 must_throw ("class B extends undefined { }; new B;");
102 must_throw ("var A = class extends Array { . }");
104 must_throw ("class Array extends Array { }");
106 must_throw ("class A extends A { }");
108 must_throw ("class A extends { constructor () { super () } }");
110 must_throw ("class A extends a * b {}");
112 must_throw ("class A extends a = b {}");
114 must_throw ("class A extends a++ {}");
116 must_throw ("class A extends -a {}");