MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / RunJsString

Function RunJsString

test/run_script.cc:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19Value RunJsString(const CallbackInfo& info) {
20 Env env = info.Env();
21 return MaybeUnwrapOr(env.RunScript(info[0].UnsafeAs<String>()), Value());
22}
23
24Value RunWithContext(const CallbackInfo& info) {
25 Env env = info.Env();

Callers

nothing calls this directly

Calls 3

MaybeUnwrapOrFunction · 0.85
EnvMethod · 0.80
ValueClass · 0.50

Tested by

no test coverage detected