]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(reactivity): remove unnecessary RefImpl _shallow default value (#3895)
authorzhangenming <282126346@qq.com>
Tue, 8 Jun 2021 13:58:02 +0000 (21:58 +0800)
committerGitHub <noreply@github.com>
Tue, 8 Jun 2021 13:58:02 +0000 (09:58 -0400)
packages/reactivity/src/ref.ts

index 588f3e9908c1c3e7608edc910ea2cbfb8c48284a..fd8ac8218afe58a2e1266b52a7b6223ce5d84276 100644 (file)
@@ -56,7 +56,7 @@ class RefImpl<T> {
 
   public readonly __v_isRef = true
 
-  constructor(private _rawValue: T, public readonly _shallow = false) {
+  constructor(private _rawValue: T, public readonly _shallow: boolean) {
     this._value = _shallow ? _rawValue : convert(_rawValue)
   }