From e5c8180fdfc93fe1fe55acbc05322447d68f363f Mon Sep 17 00:00:00 2001 From: Star Date: Sun, 30 Nov 2025 23:59:16 +0800 Subject: [PATCH] update for gojs --- console.go | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/console.go b/console.go index 40da8ad..e46d574 100644 --- a/console.go +++ b/console.go @@ -161,9 +161,9 @@ func consolePrint(args goja.FunctionCall, typ string, vm *goja.Runtime) { for i, arg := range args.Arguments { 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 { - arr[i] = u.StringP(arg.Export()) + arr[i] = u.StringP(gojs.FixObject(arg.Export())) } } diff --git a/go.mod b/go.mod index 75941d9..b655b7f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module apigo.cc/gojs/console go 1.24.0 require ( - apigo.cc/gojs v0.0.28 + apigo.cc/gojs v0.0.30 github.com/ssgo/u v1.7.23 )