Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scriptscat/scriptcat
/ compileScript
Function
compileScript
src/app/service/content/utils.ts:161–163 ·
view source on GitHub ↗
(code: string)
Source
from the content-addressed store, hash-verified
159
160
// 通过脚本代码编译脚本函数
161
export
function
compileScript(code: string): ScriptFunc {
162
return
<ScriptFunc>
new
Function(code);
163
}
164
165
/**
166
* 将脚本函数编译为注入脚本代码
Callers
4
exec_script.test.ts
File · 0.90
constructor
Method · 0.90
utils.test.ts
File · 0.90
gm_api.test.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected