Add undocumented _automaticChangeNotifications config option

This commit is contained in:
Thomas Goyne 2018-06-18 10:03:40 -07:00 committed by Thomas Goyne
parent 19f04253a7
commit 290485134e

View File

@ -568,6 +568,12 @@ void RealmClass<T>::constructor(ContextType ctx, ObjectType this_object, size_t
config.cache = Value::validated_to_boolean(ctx, cache_value, "_cache");
}
static const String automatic_change_notifications_string = "_automaticChangeNotifications";
ValueType automatic_change_notifications_value = Object::get_property(ctx, object, automatic_change_notifications_string);
if (!Value::is_undefined(ctx, automatic_change_notifications_value)) {
config.automatic_change_notifications = Value::validated_to_boolean(ctx, automatic_change_notifications_value, "_automaticChangeNotifications");
}
static const String disable_format_upgrade_string = "disableFormatUpgrade";
ValueType disable_format_upgrade_value = Object::get_property(ctx, object, disable_format_upgrade_string);
if (!Value::is_undefined(ctx, disable_format_upgrade_value)) {