pull/12482/head
Dominic Gannaway 2 years ago
parent 465f48ebc2
commit 63612d3a58

@ -84,7 +84,9 @@ function is_possiblly_reactive_object(value) {
return true; return true;
} }
const prototype = get_prototype_of(value); const prototype = get_prototype_of(value);
if (prototype === array_prototype || prototype === object_prototype) { if (prototype !== array_prototype && prototype === object_prototype) {
return true;
}
const descriptors = get_descriptors(value); const descriptors = get_descriptors(value);
for (let key in descriptors) { for (let key in descriptors) {
var prop_value = value[key]; var prop_value = value[key];
@ -96,7 +98,6 @@ function is_possiblly_reactive_object(value) {
) )
return true; return true;
} }
}
return false; return false;
} }

Loading…
Cancel
Save