(body)
| 542 | |
| 543 | (function testSuperCall() { |
| 544 | function ctor(body) { |
| 545 | return () => eval("(class extends Object { \n" + |
| 546 | " constructor() {\n" + |
| 547 | body + |
| 548 | "\n }\n" + |
| 549 | "})"); |
| 550 | } |
| 551 | assertThrows(ctor("({ new: super() } = {})"), SyntaxError); |
| 552 | assertThrows(ctor("({ new: x } = { new: super() } = {})"), SyntaxError); |
| 553 | assertThrows(ctor("[super()] = []"), SyntaxError); |
no test coverage detected