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

Function escapeFromScope

test/handlescope.cc:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26Value escapeFromScope(const CallbackInfo& info) {
27 Value result;
28 {
29 EscapableHandleScope scope(info.Env());
30 result = scope.Escape(String::New(info.Env(), "inner-scope"));
31 }
32 return result;
33}
34
35Value escapeFromExistingScope(const CallbackInfo& info) {
36 Value result;

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
EscapeMethod · 0.80

Tested by

no test coverage detected