()
| 129 | } |
| 130 | |
| 131 | get value(): T { |
| 132 | const link = __DEV__ |
| 133 | ? this.dep.track({ |
| 134 | target: this, |
| 135 | type: TrackOpTypes.GET, |
| 136 | key: 'value', |
| 137 | }) |
| 138 | : this.dep.track() |
| 139 | refreshComputed(this) |
| 140 | // sync version after evaluation |
| 141 | if (link) { |
| 142 | link.version = this.dep.version |
| 143 | } |
| 144 | return this._value |
| 145 | } |
| 146 | |
| 147 | set value(newValue) { |
| 148 | if (this.setter) { |
nothing calls this directly
no test coverage detected