(condition, msg, ...substitution)
| 99 | function assignCustomConsole() { |
| 100 | window.console = { |
| 101 | assert(condition, msg, ...substitution) { |
| 102 | originalConsole.assert(condition, msg, ...substitution); |
| 103 | if (!condition) { |
| 104 | log("error", getStack(new Error()), msg, ...substitution); |
| 105 | } |
| 106 | }, |
| 107 | clear() { |
| 108 | originalConsole.clear(); |
| 109 | if (isFocused) $input.focus(); |