Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
50
template<typename T> Global<T> passer(v8::Local<T> handle) {
51
return Global<T>(handle).Pass();
52
}
53
54
NAN_METHOD(PassGlobal) {
55
info.GetReturnValue().Set(passer(New(42)));
Callers
1
NAN_METHOD
Function · 0.85
Calls
1
Pass
Method · 0.80
Tested by
no test coverage detected