| 150 | } |
| 151 | |
| 152 | const wchar_t* StringToWchar(v8::String::Value& str) { |
| 153 | #ifdef WCHART_NOT_BUILTIN_IN_NODE |
| 154 | return reinterpret_cast<const wchar_t*>(*str); |
| 155 | #else |
| 156 | return *str; |
| 157 | #endif |
| 158 | } |
| 159 | |
| 160 | // Note: current implementation converts any JS value that has a toString method |
| 161 | // to a ::Platform::String^ Changes to this code might break the Collection |