(code)
| 585 | }; |
| 586 | |
| 587 | function executeCode(code) { |
| 588 | if (typeof code === 'function') return code(); |
| 589 | if (typeof code === 'string') return eval(code); |
| 590 | failWithMessage( |
| 591 | 'Given code is neither function nor string, but ' + (typeof code) + |
| 592 | ': <' + prettyPrinted(code) + '>'); |
| 593 | } |
| 594 | |
| 595 | assertException = function assertException(e, type_opt, cause_opt) { |
| 596 | if (type_opt !== undefined) { |
no test coverage detected
searching dependent graphs…