fix(warning): stringify args in warn handler (#10414)

close #10409
This commit is contained in:
edison 2024-02-28 19:06:18 +08:00 committed by GitHub
parent 7c97778aec
commit bc37258caa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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(