Fix converting ListValue to V8

This commit is contained in:
Cheng Zhao 2015-01-14 19:09:02 -08:00
parent 6a11eccc3e
commit f6f5ff4330

View file

@ -40,7 +40,8 @@ bool Converter<base::ListValue>::FromV8(v8::Isolate* isolate,
v8::Handle<v8::Value> Converter<base::ListValue>::ToV8(
v8::Isolate* isolate,
const base::ListValue& val) {
return v8::Undefined(isolate);
scoped_ptr<atom::V8ValueConverter> converter(new atom::V8ValueConverter);
return converter->ToV8Value(&val, isolate->GetCurrentContext());
}
} // namespace mate