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

Function stringMatches

test/cpp/nannew.cpp:48–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool
49stringMatches(Local<Value> value, const char * match) {
50 Nan::Utf8String v(value);
51 return std::string(*v) == std::string(match);
52}
53
54#define _(e) NAN_TEST_EXPRESSION(e)
55

Callers 1

NAN_METHODFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected