toDisplayString
in packages/shared/src/toDisplayString.ts should use default JSON.stringify
for objects without toString
#4334
Labels
🐞 bug
Something isn't working
Version
3.2.2
Reproduction link
9d5fd33
Steps to reproduce
toDisplayString({a: 1})
will failTypeError: Cannot convert object to primitive value
What is expected?
toDisplayString({a: 1})
should output a display stringWhat is actually happening?
toDisplayString({a: 1})
fails because the object doesn't havetoString
implementationThe bug is caused by this PR: 9d5fd33
And please take PRs seriously, especially Vue is a fundamental framework.
The text was updated successfully, but these errors were encountered: