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

Function RunPlainString

test/run_script.cc:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace {
7
8Value RunPlainString(const CallbackInfo& info) {
9 Env env = info.Env();
10 return MaybeUnwrap(env.RunScript("1 + 2 + 3"));
11}
12
13Value RunStdString(const CallbackInfo& info) {
14 Env env = info.Env();

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected