Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e5c8180fdf | |||
| 64d3c24eab | |||
| 5af97f8695 |
@ -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()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
22
go.mod
22
go.mod
@ -1,22 +1,22 @@
|
||||
module apigo.cc/gojs/console
|
||||
|
||||
go 1.18
|
||||
go 1.24.0
|
||||
|
||||
require (
|
||||
apigo.cc/gojs v0.0.4
|
||||
github.com/ssgo/u v1.7.11
|
||||
apigo.cc/gojs v0.0.30
|
||||
github.com/ssgo/u v1.7.23
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/dlclark/regexp2 v1.11.4 // indirect
|
||||
github.com/fsnotify/fsnotify v1.8.0 // indirect
|
||||
github.com/dlclark/regexp2 v1.11.5 // indirect
|
||||
github.com/fsnotify/fsnotify v1.9.0 // indirect
|
||||
github.com/go-sourcemap/sourcemap v2.1.4+incompatible // indirect
|
||||
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
|
||||
github.com/ssgo/config v1.7.9 // indirect
|
||||
github.com/ssgo/log v1.7.7 // indirect
|
||||
github.com/google/pprof v0.0.0-20250903194437-c28834ac2320 // indirect
|
||||
github.com/ssgo/config v1.7.10 // indirect
|
||||
github.com/ssgo/log v1.7.9 // indirect
|
||||
github.com/ssgo/standard v1.7.7 // indirect
|
||||
github.com/ssgo/tool v0.4.27 // indirect
|
||||
golang.org/x/sys v0.27.0 // indirect
|
||||
golang.org/x/text v0.20.0 // indirect
|
||||
github.com/ssgo/tool v0.4.29 // indirect
|
||||
golang.org/x/sys v0.38.0 // indirect
|
||||
golang.org/x/text v0.31.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user