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()) {