(string, expected)
| 5 | // Flags: --allow-natives-syntax |
| 6 | |
| 7 | function test(string, expected) { |
| 8 | const got = JSON.parse(string); |
| 9 | assertEquals(expected, got); |
| 10 | assertEquals(%HasSmiElements(expected), %HasSmiElements(got)); |
| 11 | } |
| 12 | |
| 13 | function testError(string) { |
| 14 | assertThrows(() => JSON.parse(string)); |
no test coverage detected
searching dependent graphs…