]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test: fix warning
authorEvan You <yyx990803@gmail.com>
Mon, 9 Dec 2019 19:23:01 +0000 (14:23 -0500)
committerEvan You <yyx990803@gmail.com>
Mon, 9 Dec 2019 19:23:01 +0000 (14:23 -0500)
packages/runtime-core/src/apiApp.ts

index 71b75821f22fc089cf7b40a28349ce7457cb6271..53614ca2eea118190dec114eff4f027f41afaa9b 100644 (file)
@@ -166,7 +166,7 @@ export function createAppAPI<HostNode, HostElement>(
         rootProps?: Data | null
       ): any {
         if (!isMounted) {
-          if (!isObject(rootProps)) {
+          if (rootProps != null && !isObject(rootProps)) {
             __DEV__ &&
               warn(`root props passed to app.mount() must be an object.`)
             rootProps = null