wip: handle value -> value assignment in reactive object

This commit is contained in:
Evan You 2019-08-13 11:13:26 -04:00
parent 645c1eceea
commit 61ab483af1

View File

@ -43,7 +43,7 @@ function set(
const hadKey = hasOwnProperty.call(target, key)
const oldValue = target[key]
if (isValue(oldValue)) {
oldValue.value = value
oldValue.value = isValue(value) ? value.value : value
return true
}
const result = Reflect.set(target, key, value, receiver)