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

Function doubleEscapeFromScope

test/handlescope.cc:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63Value doubleEscapeFromScope(const CallbackInfo& info) {
64 Value result;
65 {
66 EscapableHandleScope scope(info.Env());
67 result = scope.Escape(String::New(info.Env(), "inner-scope"));
68 result = scope.Escape(String::New(info.Env(), "inner-scope"));
69 }
70 return result;
71}
72
73Object InitHandleScope(Env env) {
74 Object exports = Object::New(env);

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
EscapeMethod · 0.80

Tested by

no test coverage detected