From 7394f7ec42d2eb93c6dbbe8c9a10ed736e0eae0b Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sat, 26 Oct 2019 17:52:29 +0300 Subject: [PATCH] fix(apiInject): fix stringifying of symbol injection key (#383) --- packages/runtime-core/src/apiInject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/apiInject.ts b/packages/runtime-core/src/apiInject.ts index a83a1ece..23a620fe 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().`)