From: Dmitry Sharshakov Date: Sat, 26 Oct 2019 14:52:29 +0000 (+0300) Subject: fix(apiInject): fix stringifying of symbol injection key (#383) X-Git-Tag: v3.0.0-alpha.0~301 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7394f7ec42d2eb93c6dbbe8c9a10ed736e0eae0b;p=thirdparty%2Fvuejs%2Fcore.git fix(apiInject): fix stringifying of symbol injection key (#383) --- diff --git a/packages/runtime-core/src/apiInject.ts b/packages/runtime-core/src/apiInject.ts index a83a1ece1a..23a620fedd 100644 --- a/packages/runtime-core/src/apiInject.ts +++ b/packages/runtime-core/src/apiInject.ts @@ -39,7 +39,7 @@ export function inject( } else if (defaultValue !== undefined) { return defaultValue } else if (__DEV__) { - warn(`injection "${key}" not found.`) + warn(`injection "${String(key)}" not found.`) } } else if (__DEV__) { warn(`inject() can only be used inside setup().`)