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

Function NAN_METHOD

test/cpp/methodswithdata.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace Nan; // NOLINT(build/namespaces)
13
14NAN_METHOD(TestWithData) {
15 info.GetReturnValue().Set(false);
16 {
17 std::string datavalue = *Nan::Utf8String(info.Data());
18 if (datavalue != "test-value")return;
19 }
20 info.GetReturnValue().Set(true);
21}
22
23class SetterGetter : public ObjectWrap {
24 public:

Callers

nothing calls this directly

Calls 7

Utf8StringClass · 0.85
WrapMethod · 0.80
ToLocalCheckedMethod · 0.80
NewFunction · 0.50
NewInstanceFunction · 0.50
SetMethod · 0.45
GetReturnValueMethod · 0.45

Tested by

no test coverage detected