]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(apiInject): fix stringifying of symbol injection key (#383)
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
Sat, 26 Oct 2019 14:52:29 +0000 (17:52 +0300)
committerEvan You <yyx990803@gmail.com>
Sat, 26 Oct 2019 14:52:29 +0000 (10:52 -0400)
packages/runtime-core/src/apiInject.ts

index a83a1ece1a836ae1aa3d41dbe0eb6713e3e35322..23a620fedd46e861ed9aa12ed42d6d7a796ec045 100644 (file)
@@ -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().`)