mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-22 20:41:18 +00:00
report null instead of undefined for deleteAll indexes count
This commit is contained in:
parent
5effd3a9ac
commit
0dabf3d87d
@ -50,7 +50,7 @@ typename T::Value CollectionClass<T>::create_collection_change_set(ContextType c
|
||||
std::vector<ValueType> deletions, insertions, modifications;
|
||||
|
||||
if (change_set.deletions.count() == std::numeric_limits<size_t>::max()) {
|
||||
deletions.push_back(Value::from_undefined(ctx));
|
||||
deletions.push_back(Value::from_null(ctx));
|
||||
}
|
||||
else {
|
||||
for (auto index : change_set.deletions.as_indexes()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user