| 30 | |
| 31 | |
| 32 | void 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 | |
| 42 | namespace NodeRT { |
| 43 | v8::Local<v8::Value> CreateOpaqueWrapper(::Platform::Object^ winRtInstance) |
nothing calls this directly
no outgoing calls
no test coverage detected