(f, expected, type)
| 5 | // Flags: --allow-natives-syntax --stack-size=100 --harmony |
| 6 | |
| 7 | function test(f, expected, type) { |
| 8 | try { |
| 9 | f(); |
| 10 | } catch (e) { |
| 11 | assertInstanceof(e, type); |
| 12 | assertEquals(expected, e.message); |
| 13 | return; |
| 14 | } |
| 15 | assertUnreachable("Exception expected"); |
| 16 | } |
| 17 | |
| 18 | const typedArrayConstructors = [ |
| 19 | Uint8Array, |
no test coverage detected
searching dependent graphs…