(expression, ...args)
| 475 | |
| 476 | // Defined by: https://console.spec.whatwg.org/#assert |
| 477 | assert(expression, ...args) { |
| 478 | if (!expression) { |
| 479 | if (args.length && typeof args[0] === 'string') { |
| 480 | args[0] = `Assertion failed: ${args[0]}`; |
| 481 | } else { |
| 482 | ArrayPrototypeUnshift(args, 'Assertion failed'); |
| 483 | } |
| 484 | // The arguments will be formatted in warn() again |
| 485 | ReflectApply(this.warn, this, args); |
| 486 | } |
| 487 | }, |
| 488 | |
| 489 | // Defined by: https://console.spec.whatwg.org/#clear |
| 490 | clear() { |
no outgoing calls
no test coverage detected
searching dependent graphs…