don't use native_mate/compat.h macros (#12984)

This commit is contained in:
Milan Burda 2018-05-18 02:08:28 +02:00 committed by Cheng Zhao
parent 83993fede8
commit 850051463b

View file

@ -14,8 +14,9 @@ template <>
struct Converter<base::string16> { struct Converter<base::string16> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate, static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
const base::string16& val) { const base::string16& val) {
return MATE_STRING_NEW_FROM_UTF16( return v8::String::NewFromTwoByte(
isolate, reinterpret_cast<const uint16_t*>(val.data()), val.size()); isolate, reinterpret_cast<const uint16_t*>(val.data()),
v8::String::kNormalString, val.size());
} }
static bool FromV8(v8::Isolate* isolate, static bool FromV8(v8::Isolate* isolate,
v8::Local<v8::Value> val, v8::Local<v8::Value> val,