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

Function NAN_INDEX_DELETER

test/cpp/indexedinterceptors.cpp:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108NAN_INDEX_DELETER(IndexedInterceptor::PropertyDeleter) {
109 IndexedInterceptor* interceptor =
110 ObjectWrap::Unwrap<IndexedInterceptor>(info.Holder());
111 std::strncpy(interceptor->buf, "goober", sizeof (interceptor->buf));
112 info.GetReturnValue().Set(True());
113 return Intercepted::Yes();
114}
115
116NAN_INDEX_QUERY(IndexedInterceptor::PropertyQuery) {
117 if (index == 1) {

Callers

nothing calls this directly

Calls 4

TrueFunction · 0.85
YesFunction · 0.85
SetMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected