From bc37258caa2f6f67f4554ab8587aca3798d92124 Mon Sep 17 00:00:00 2001 From: edison Date: Wed, 28 Feb 2024 19:06:18 +0800 Subject: [PATCH] fix(warning): stringify args in warn handler (#10414) close #10409 --- packages/runtime-core/src/warning.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/warning.ts b/packages/runtime-core/src/warning.ts index 16928387dfb..c3b2ebbd02d 100644 --- a/packages/runtime-core/src/warning.ts +++ b/packages/runtime-core/src/warning.ts @@ -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(