MCPcopy 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// 通过脚本代码编译脚本函数
161export function compileScript(code: string): ScriptFunc {
162 return <ScriptFunc>new Function(code);
163}
164
165/**
166 * 将脚本函数编译为注入脚本代码

Callers 4

constructorMethod · 0.90
utils.test.tsFile · 0.90
gm_api.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected