| 147 | |
| 148 | template <class V> |
| 149 | static ::Platform::Array<V> ^ |
| 150 | JsArrayToWinrtArray( |
| 151 | v8::Local<v8::Array> arr, |
| 152 | const std::function<bool(v8::Local<v8::Value>)>& checkValueTypeFunc, |
| 153 | const std::function<V(v8::Local<v8::Value>)>& convertToValueTypeFunc) { |
| 154 | auto vec = ref new ::Platform::Array<V>(arr->Length()); |
| 155 | if (!FillVector<::Platform::Array<V> ^, V>(arr, checkValueTypeFunc, |
| 156 | convertToValueTypeFunc, vec)) { |
| 157 | return nullptr; |
| 158 | } |
| 159 | |
| 160 | return vec; |
| 161 | } |
| 162 | } // namespace Collections |
| 163 | |
| 164 | template <class V> |
nothing calls this directly
no outgoing calls
no test coverage detected