MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / eval_script

Method eval_script

source/binding/NodeJS/src/plugin/runtime.cpp:176–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void QuickJSRuntime::eval_script(std::string script)
177{
178 auto val = JS_Eval(d_->ctx, script.c_str(), script.size(), "index.js", JS_EVAL_FLAG_STRICT);
179 JS_FreeValue(d_->ctx, val);
180}
181
182void QuickJSRuntime::exec_loop(bool auto_quit)
183{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected