From: Evan You Date: Mon, 9 Dec 2019 19:23:01 +0000 (-0500) Subject: test: fix warning X-Git-Tag: v3.0.0-alpha.0~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad;p=thirdparty%2Fvuejs%2Fcore.git test: fix warning --- diff --git a/packages/runtime-core/src/apiApp.ts b/packages/runtime-core/src/apiApp.ts index 71b75821f2..53614ca2ee 100644 --- a/packages/runtime-core/src/apiApp.ts +++ b/packages/runtime-core/src/apiApp.ts @@ -166,7 +166,7 @@ export function createAppAPI( 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