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

Method Init

src/NodeRTLib/ProjectFiles/OpaqueWrapper.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32void NodeRT::OpaqueWrapper::Init()
33{
34 Nan::HandleScope scope;
35 // Prepare constructor template
36 s_constructorTemplate.Reset(Nan::New<FunctionTemplate>(New));
37 v8::Local<v8::FunctionTemplate> localRef = Nan::New<FunctionTemplate>(s_constructorTemplate);
38 localRef->SetClassName(Nan::New<String>("OpaqueWrapper").ToLocalChecked());
39 localRef->InstanceTemplate()->SetInternalFieldCount(1);
40}
41
42namespace NodeRT {
43 v8::Local<v8::Value> CreateOpaqueWrapper(::Platform::Object^ winRtInstance)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected