MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / initProps

Function initProps

src/NodeRTLib/ProjectFiles/CollectionsConverter.h:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27Nan::Persistent<v8::String> g_valueProp;
28
29static void initProps() {
30 if (g_keyProp.IsEmpty())
31 g_keyProp.Reset(Nan::New<v8::String>("key").ToLocalChecked());
32
33 if (g_valueProp.IsEmpty())
34 g_valueProp.Reset(Nan::New<v8::String>("value").ToLocalChecked());
35}
36
37static std::function<bool(v8::Local<v8::Value>)> checkStringFunc =
38 [](v8::Local<v8::Value> value) -> bool { return value->IsString(); };

Callers 1

FillMapFromJsArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected