Skip to content

Commit 8cef55b

Browse files
edison1105lynxlangya
authored andcommitted
fix(warning): stringify args in warn handler (vuejs#10414)
close vuejs#10409
1 parent 23b5fa5 commit 8cef55b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/warning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function warn(msg: string, ...args: any[]) {
4545
instance,
4646
ErrorCodes.APP_WARN_HANDLER,
4747
[
48-
msg + args.join(''),
48+
msg + args.map(a => a.toString?.() ?? JSON.stringify(a)).join(''),
4949
instance && instance.proxy,
5050
trace
5151
.map(

0 commit comments

Comments
 (0)