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

Method Init

src/NodeRTLib/ProjectFiles/CollectionsWrap.h:365–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363class IterableWrapper : NodeRT::WrapperBase {
364 public:
365 static void Init() {
366 HandleScope scope;
367
368 Local<FunctionTemplate> localRef = Nan::New<FunctionTemplate>(New);
369 s_constructorTemplate.Reset(localRef);
370 localRef->SetClassName(
371 Nan::New<String>("Windows::Foundation::Collections:IIterable")
372 .ToLocalChecked());
373 localRef->InstanceTemplate()->SetInternalFieldCount(1);
374
375 Nan::SetPrototypeMethod(localRef, "first", First);
376
377 return;
378 }
379
380 static Local<Value> CreateIterableWrapper(
381 ::Windows::Foundation::Collections::IIterable<T> ^ winRtInstance,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected