fix(warn): cast symbols to strings (#1103)

This commit is contained in:
Eduardo San Martin Morote 2020-05-02 16:26:32 +02:00 committed by GitHub
parent 583ba0c172
commit 71a942b25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,7 +241,7 @@ export function createAppAPI<HostElement>(
provide(key, value) {
if (__DEV__ && key in context.provides) {
warn(
`App already provides property with key "${key}". ` +
`App already provides property with key "${String(key)}". ` +
`It will be overwritten with the new value.`
)
}