Skip to content

Commit

Permalink
fix(warning): stringify args in warn handler (vuejs#10414)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 authored and lynxlangya committed May 30, 2024
1 parent 23b5fa5 commit 8cef55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/warning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function warn(msg: string, ...args: any[]) {
instance,
ErrorCodes.APP_WARN_HANDLER,
[
msg + args.join(''),
msg + args.map(a => a.toString?.() ?? JSON.stringify(a)).join(''),
instance && instance.proxy,
trace
.map(
Expand Down

0 comments on commit 8cef55b

Please sign in to comment.