From 0dabf3d87d13fedce1716e8ec2ffc2bfad10dfb1 Mon Sep 17 00:00:00 2001 From: blagoev Date: Mon, 1 May 2017 10:51:48 +0300 Subject: [PATCH] report null instead of undefined for deleteAll indexes count --- src/js_collection.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js_collection.hpp b/src/js_collection.hpp index 3223604a..4e537791 100644 --- a/src/js_collection.hpp +++ b/src/js_collection.hpp @@ -50,7 +50,7 @@ typename T::Value CollectionClass::create_collection_change_set(ContextType c std::vector deletions, insertions, modifications; if (change_set.deletions.count() == std::numeric_limits::max()) { - deletions.push_back(Value::from_undefined(ctx)); + deletions.push_back(Value::from_null(ctx)); } else { for (auto index : change_set.deletions.as_indexes()) {