MCPcopy Create free account
hub / github.com/nodejs/nan / passer

Function passer

test/cpp/persistent.cpp:50–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50template<typename T> Global<T> passer(v8::Local<T> handle) {
51 return Global<T>(handle).Pass();
52}
53
54NAN_METHOD(PassGlobal) {
55 info.GetReturnValue().Set(passer(New(42)));

Callers 1

NAN_METHODFunction · 0.85

Calls 1

PassMethod · 0.80

Tested by

no test coverage detected