MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / assertTrue

Function assertTrue

example/tests/inject_content_test.js:56–60  ·  view source on GitHub ↗
(condition, message)

Source from the content-addressed store, hash-verified

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;");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected