(errorConstructor)
| 120 | |
| 121 | // Testing the throwing. |
| 122 | function thrower(errorConstructor) { |
| 123 | throw new errorConstructor({}); |
| 124 | } |
| 125 | |
| 126 | // The basic calls work. |
| 127 | assert.throws(() => thrower(assert.AssertionError), assert.AssertionError, 'message'); |
no outgoing calls
no test coverage detected
searching dependent graphs…