* Assert a JS Error with the expected constructor is thrown. * * @param {object} constructor The expected exception constructor. * @param {Function} func Function which should throw. * @param {string} [description] Error description for the case that the error is not thrown.
(constructor, func, description)
| 2178 | * @param {string} [description] Error description for the case that the error is not thrown. |
| 2179 | */ |
| 2180 | function assert_throws_js(constructor, func, description) |
| 2181 | { |
| 2182 | assert_throws_js_impl(constructor, func, description, |
| 2183 | "assert_throws_js"); |
| 2184 | } |
| 2185 | expose_assert(assert_throws_js, "assert_throws_js"); |
| 2186 | |
| 2187 | /** |
no test coverage detected