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

Function RunStdString

test/run_script.cc:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13Value RunStdString(const CallbackInfo& info) {
14 Env env = info.Env();
15 std::string str = "1 + 2 + 3";
16 return MaybeUnwrap(env.RunScript(str));
17}
18
19Value RunJsString(const CallbackInfo& info) {
20 Env env = info.Env();

Callers

nothing calls this directly

Calls 2

MaybeUnwrapFunction · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected