Lines Matching defs:thrower
114 function thrower(errorConstructor) {
119 assert.throws(() => thrower(a.AssertionError), a.AssertionError, 'message');
120 assert.throws(() => thrower(a.AssertionError), a.AssertionError);
121 assert.throws(() => thrower(a.AssertionError));
124 assert.throws(() => thrower(TypeError));
128 () => a.throws(() => thrower(TypeError), a.AssertionError),
145 a.doesNotThrow(() => thrower(TypeError), a.AssertionError);
157 a.doesNotThrow(() => thrower(TypeError), TypeError);
167 () => a.doesNotThrow(() => thrower(Error), 'user message'),
178 () => a.doesNotThrow(() => thrower(Error)),
186 () => a.doesNotThrow(() => thrower(Error), /\[[a-z]{6}\s[A-z]{6}\]/g, 'user message'),
214 a.throws(() => thrower(TypeError), /\[object Object\]/);
236 a.throws(() => thrower(TypeError), (err) => {