test: fix options usage of reactive

This commit is contained in:
Evan You 2020-02-26 21:29:41 -05:00
parent e67f655b26
commit 5d952cc051

View File

@ -249,8 +249,9 @@ export function applyOptions(
} = options
const renderContext =
instance.renderContext === EMPTY_OBJ
? (instance.renderContext = {})
instance.renderContext === EMPTY_OBJ &&
(computedOptions || methods || watchOptions || injectOptions)
? (instance.renderContext = reactive({}))
: instance.renderContext
const globalMixins = instance.appContext.mixins