@type {function(*, string=)}
(condition, text)
| 218 | // TODO(sbc): Make this the default even without STRICT enabled. |
| 219 | /** @type {function(*, string=)} */ |
| 220 | function assert(condition, text) { |
| 221 | if (!condition) { |
| 222 | // This build was created without ASSERTIONS defined. `assert()` should not |
| 223 | // ever be called in this configuration but in case there are callers in |
| 224 | // the wild leave this simple abort() implementation here for now. |
| 225 | abort(text); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * Indicates whether filename is delivered via file protocol (as opposed to http/https) |