Skip to content

Commit 1dd7737

Browse files
authored
Merge 25edefd into d4a9e20
2 parents d4a9e20 + 25edefd commit 1dd7737

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ namespace CefSharp
6363
auto array = CefListValue::Create();
6464
if (arrLength > 0 && obj->GetKeys(keys))
6565
{
66+
int index = 0;
6667
for (int i = 0; i < arrLength; i++)
6768
{
68-
SerializeV8Object(obj->GetValue(keys[i]), array, i, callbackRegistry, seen);
69+
if (obj->HasValue(i))
70+
SerializeV8Object(obj->GetValue(keys[index++]), array, i, callbackRegistry, seen);
6971
}
70-
7172
}
7273

7374
list->SetList(index, array);

0 commit comments

Comments
 (0)