(condition, message)
| 54 | |
| 55 | // assertTrue(condition, message) - 断言条件为真 |
| 56 | function assertTrue(condition, message) { |
| 57 | if (!condition) { |
| 58 | throw new Error(message || "断言失败: 期望条件为真"); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // ============ CSP绕过测试 ============ |
| 63 | console.log("\n%c--- CSP绕过测试 ---", "color: orange; font-weight: bold;"); |
no outgoing calls
no test coverage detected