(script)
| 4 | |
| 5 | |
| 6 | function shouldThrowSyntaxError(script) { |
| 7 | let error; |
| 8 | try { |
| 9 | eval(script); |
| 10 | } catch (e) { |
| 11 | error = e; |
| 12 | } |
| 13 | |
| 14 | if (!(error instanceof SyntaxError)) { |
| 15 | throw new Error('Expected SyntaxError!'); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | assertEquals(undefined?.valueOf(), undefined); |
| 20 | assertEquals(null?.valueOf(), undefined); |
no test coverage detected