From f6f5ff433021e548b6165ff46c2d5efcf8802a6d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 14 Jan 2015 19:09:02 -0800 Subject: [PATCH] Fix converting ListValue to V8 --- atom/common/native_mate_converters/value_converter.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/common/native_mate_converters/value_converter.cc b/atom/common/native_mate_converters/value_converter.cc index 252c4c2abcb4..65d47b2af8c4 100644 --- a/atom/common/native_mate_converters/value_converter.cc +++ b/atom/common/native_mate_converters/value_converter.cc @@ -40,7 +40,8 @@ bool Converter::FromV8(v8::Isolate* isolate, v8::Handle Converter::ToV8( v8::Isolate* isolate, const base::ListValue& val) { - return v8::Undefined(isolate); + scoped_ptr converter(new atom::V8ValueConverter); + return converter->ToV8Value(&val, isolate->GetCurrentContext()); } } // namespace mate