Skip to content

Commit

Permalink
Merge 2b46d62 into 6fcd3e6
Browse files Browse the repository at this point in the history
  • Loading branch information
angshuman-agarwal authored Jul 8, 2019
2 parents 6fcd3e6 + 2b46d62 commit 0e0f259
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2015 The CefSharp Authors. All rights reserved.
// Copyright © 2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Expand Down Expand Up @@ -59,20 +59,17 @@ namespace CefSharp
{
int arrLength = obj->GetArrayLength();
std::vector<CefString> keys;
auto array = CefListValue::Create();
if (arrLength > 0 && obj->GetKeys(keys))
{
auto array = CefListValue::Create();
for (int i = 0; i < arrLength; i++)
{
SerializeV8Object(obj->GetValue(keys[i]), array, i, callbackRegistry, seen);
}

list->SetList(index, array);
}
else
{
list->SetNull(index);
}

list->SetList(index, array);
}
else if (obj->IsFunction())
{
Expand Down

0 comments on commit 0e0f259

Please sign in to comment.