| 164 | } |
| 165 | |
| 166 | const wchar_t *StringToWchar(v8::String::Value &str) |
| 167 | { |
| 168 | #ifdef WCHART_NOT_BUILTIN_IN_NODE |
| 169 | return reinterpret_cast<const wchar_t *>(*str); |
| 170 | #else |
| 171 | return *str; |
| 172 | #endif |
| 173 | } |
| 174 | |
| 175 | // Note: current implementation converts any JS value that has a toString method |
| 176 | // to a ::Platform::String^ Changes to this code might break the Collection |