]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix converting ListValue to V8
authorCheng Zhao <zcbenz@gmail.com>
Thu, 15 Jan 2015 03:09:02 +0000 (19:09 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 15 Jan 2015 03:09:25 +0000 (19:09 -0800)
atom/common/native_mate_converters/value_converter.cc

index 252c4c2abcb436d5c80d3e8f8068101fd5fd491c..65d47b2af8c46e87e93377c907a3068d3291b771 100644 (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