(condition, message)
| 57 | |
| 58 | // assertTrue(condition, message) - 断言条件为真 |
| 59 | function assertTrue(condition, message) { |
| 60 | if (!condition) { |
| 61 | throw new Error(message || "断言失败: 期望条件为真"); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | console.log("%c=== 早期脚本 GM API 测试开始 ===", "color: blue; font-size: 16px; font-weight: bold;"); |
| 66 |
no outgoing calls
no test coverage detected