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

Function NAN_PROPERTY_DELETER

test/cpp/namedinterceptors.cpp:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107NAN_PROPERTY_DELETER(NamedInterceptor::PropertyDeleter) {
108 NamedInterceptor* interceptor =
109 ObjectWrap::Unwrap<NamedInterceptor>(info.Holder());
110 std::strncpy(interceptor->buf, "goober", sizeof (interceptor->buf));
111 info.GetReturnValue().Set(True());
112 return Intercepted::Yes();
113}
114
115NAN_PROPERTY_QUERY(NamedInterceptor::PropertyQuery) {
116 Nan::Utf8String s(property);

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