(...r)
| 54 | t.#o < 4 || (e = e.map(e => `🅱️ ${e}`), t.log(...e)) |
| 55 | }; |
| 56 | static error(...r) { |
| 57 | if (!(t.#o < 1)) { |
| 58 | switch (e) { |
| 59 | case "Surge": |
| 60 | case "Loon": |
| 61 | case "Stash": |
| 62 | case "Egern": |
| 63 | case "Shadowrocket": |
| 64 | case "Quantumult X": |
| 65 | default: |
| 66 | r = r.map(e => `❌ ${e}`); |
| 67 | break; |
| 68 | case "Node.js": |
| 69 | r = r.map(e => `❌ ${e.stack}`) |
| 70 | } |
| 71 | t.log(...r) |
| 72 | } |
| 73 | } |
| 74 | static exception = (...e) => t.error(...e); |
| 75 | static group = e => t.#t.unshift(e); |
| 76 | static groupEnd = () => t.#t.shift(); |
no test coverage detected