update for gojs

This commit is contained in:
Star 2025-11-30 23:59:16 +08:00
parent 64d3c24eab
commit e5c8180fdf
2 changed files with 3 additions and 3 deletions

View File

@ -161,9 +161,9 @@ func consolePrint(args goja.FunctionCall, typ string, vm *goja.Runtime) {
for i, arg := range args.Arguments { for i, arg := range args.Arguments {
if textColor != u.TextNone { if textColor != u.TextNone {
arr[i] = u.Color(u.StringP(arg.Export()), textColor, u.BgNone) arr[i] = u.Color(u.StringP(gojs.FixObject(arg.Export())), textColor, u.BgNone)
} else { } else {
arr[i] = u.StringP(arg.Export()) arr[i] = u.StringP(gojs.FixObject(arg.Export()))
} }
} }

2
go.mod
View File

@ -3,7 +3,7 @@ module apigo.cc/gojs/console
go 1.24.0 go 1.24.0
require ( require (
apigo.cc/gojs v0.0.28 apigo.cc/gojs v0.0.30
github.com/ssgo/u v1.7.23 github.com/ssgo/u v1.7.23
) )