don't use native_mate/compat.h macros (#12984)
This commit is contained in:
parent
83993fede8
commit
850051463b
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ template <>
|
|||
struct Converter<base::string16> {
|
||||
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
|
||||
const base::string16& val) {
|
||||
return MATE_STRING_NEW_FROM_UTF16(
|
||||
isolate, reinterpret_cast<const uint16_t*>(val.data()), val.size());
|
||||
return v8::String::NewFromTwoByte(
|
||||
isolate, reinterpret_cast<const uint16_t*>(val.data()),
|
||||
v8::String::kNormalString, val.size());
|
||||
}
|
||||
static bool FromV8(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> val,
|
||||
|
|
Loading…
Add table
Reference in a new issue