| 163 | |
| 164 | template <class V> |
| 165 | static void InsertToVector( |
| 166 | uint32_t index, |
| 167 | v8::Local<v8::Value> value, |
| 168 | const std::function<V(v8::Local<v8::Value>)>& convertToValueTypeFunc, |
| 169 | std::vector<V>& vec) { |
| 170 | vec[index] = convertToValueTypeFunc(value); |
| 171 | } |
| 172 | |
| 173 | template <class V> |
| 174 | static void InsertToVector( |