| 44 | class ArrayWrapper : NodeRT::WrapperBase { |
| 45 | public: |
| 46 | static void Init() { |
| 47 | EscapableHandleScope scope; |
| 48 | |
| 49 | Local<FunctionTemplate> localRef = Nan::New<FunctionTemplate>(New); |
| 50 | s_constructorTemplate.Reset(localRef); |
| 51 | |
| 52 | localRef->SetClassName( |
| 53 | Nan::New<String>("Windows::Foundation::Array").ToLocalChecked()); |
| 54 | localRef->InstanceTemplate()->SetInternalFieldCount(1); |
| 55 | Nan::SetIndexedPropertyHandler(localRef->InstanceTemplate(), Get, Set); |
| 56 | |
| 57 | Nan::SetAccessor(localRef->PrototypeTemplate(), |
| 58 | Nan::New<String>("length").ToLocalChecked(), LengthGetter); |
| 59 | |
| 60 | return; |
| 61 | } |
| 62 | |
| 63 | static Local<Value> CreateArrayWrapper( |
| 64 | ::Platform::Array<T> ^ winRtInstance, |
nothing calls this directly
no outgoing calls
no test coverage detected