* @private * @description * Confirm that a value is truthy, throws an error message otherwise. * * @param {*} val - the val to test. * @param {string} msg - the error message on failure. * @throws {Error}
(val, msg)
| 316 | * @throws {Error} |
| 317 | */ |
| 318 | function assert (val, msg) { |
| 319 | if (!val) throw new Error('set-dom: ' + msg) |
| 320 | } |