| 363 | class 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, |
nothing calls this directly
no outgoing calls
no test coverage detected