(e, expected)
| 45 | } |
| 46 | |
| 47 | function checkTopFunctionsOnCallsites(e, expected) { |
| 48 | printCallsites(e.stack); |
| 49 | assertTrue( |
| 50 | e.stack.length >= expected.length, 'expected at least ' + |
| 51 | expected.length + ' callsites, got ' + e.stack.length); |
| 52 | checkCallsiteArray(e.stack.slice(0, expected.length), expected); |
| 53 | } |
| 54 | |
| 55 | function throwException() { |
| 56 | throw new Error('exception from JS'); |
no test coverage detected