Lines Matching refs:shouldThrow
65 shouldThrow('x = class extends Base { constructor() { super(); } method() { super() } }',
67 shouldThrow('x = class extends Base { constructor() { super(); } method() { super } }', '"SyntaxErr…
68 shouldThrow('x = class extends Base { constructor() { super(); } method() { return new super } }', …
72 shouldThrow('(new x).method1()', '"ReferenceError: Unsupported reference to \'super\'"');
73 shouldThrow('(new x).method2()', '"ReferenceError: Unsupported reference to \'super\'"');
76 shouldThrow('new (class extends Base { constructor() { return undefined } })');
80 shouldThrow('new (class extends Base { constructor() { } })', '"ReferenceError: this is not defined…
81 shouldThrow('new (class extends Base { constructor() { return 1; } })', '"TypeError: Derived constr…
82 shouldThrow('new (class extends null { constructor() { return undefined } })');
83 shouldThrow('new (class extends null { constructor() { super(); return undefined } })', '"TypeError…
86 shouldThrow('new (class extends null { constructor() { } })', '"ReferenceError: this is not defined…
87 shouldThrow('new (class extends null { constructor() { return 1; } })', '"TypeError: Derived constr…
88 shouldThrow('new (class extends null { constructor() { super() } })', '"TypeError: super is not a c…
89 shouldThrow('new (class { constructor() { super() } })', '"SyntaxError: \'super\' keyword unexpecte…
90 shouldThrow('function x() { super(); }', '"SyntaxError: \'super\' keyword unexpected here"');
91 shouldThrow('new (class extends Object { constructor() { function x() { super() } } })', '"SyntaxEr…
92 shouldThrow('new (class extends Object { constructor() { function x() { super.method } } })', '"Syn…
93 shouldThrow('function x() { super.method(); }', '"SyntaxError: \'super\' keyword unexpected here"');
94 shouldThrow('function x() { super(); }', '"SyntaxError: \'super\' keyword unexpected here"');