Skip to content

Commit

Permalink
fix(warning): stringify args in warn handler (#10414)
Browse files Browse the repository at this point in the history
close #10409
  • Loading branch information
edison1105 authored Feb 28, 2024
1 parent 7c97778 commit bc37258
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 bc37258

Please sign in to comment.