mirror of https://github.com/vuejs/core.git
Merge b0951ef8a2
into 56be3dd4db
This commit is contained in:
commit
71c4517b73
|
@ -791,6 +791,9 @@ function getInvalidTypeMessage(
|
||||||
* dev only
|
* dev only
|
||||||
*/
|
*/
|
||||||
function styleValue(value: unknown, type: string): string {
|
function styleValue(value: unknown, type: string): string {
|
||||||
|
if (typeof value === 'symbol') {
|
||||||
|
value = value.toString()
|
||||||
|
}
|
||||||
if (type === 'String') {
|
if (type === 'String') {
|
||||||
return `"${value}"`
|
return `"${value}"`
|
||||||
} else if (type === 'Number') {
|
} else if (type === 'Number') {
|
||||||
|
|
Loading…
Reference in New Issue