fix buf for unocode message
This commit is contained in:
parent
85dee34f6b
commit
88c26c7150
18
go.mod
18
go.mod
@ -1,22 +1,22 @@
|
||||
module apigo.cc/gojs/log
|
||||
|
||||
go 1.18
|
||||
go 1.23.0
|
||||
|
||||
require (
|
||||
apigo.cc/gojs v0.0.8
|
||||
github.com/ssgo/u v1.7.13
|
||||
apigo.cc/gojs v0.0.17
|
||||
github.com/ssgo/u v1.7.20
|
||||
)
|
||||
|
||||
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/google/pprof v0.0.0-20250607225305-033d6d78b36a // indirect
|
||||
github.com/ssgo/config v1.7.9 // indirect
|
||||
github.com/ssgo/log v1.7.7 // indirect
|
||||
github.com/ssgo/standard v1.7.7 // indirect
|
||||
github.com/ssgo/tool v0.4.27 // indirect
|
||||
golang.org/x/sys v0.28.0 // indirect
|
||||
golang.org/x/text v0.21.0 // indirect
|
||||
github.com/ssgo/tool v0.4.29 // indirect
|
||||
golang.org/x/sys v0.33.0 // indirect
|
||||
golang.org/x/text v0.26.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
)
|
||||
|
2
log.go
2
log.go
@ -68,5 +68,5 @@ func getExceptionString(args goja.FunctionCall, vm *goja.Runtime) string {
|
||||
}
|
||||
}
|
||||
}
|
||||
return u.String(args.Argument(0))
|
||||
return u.String(args.Argument(0).Export())
|
||||
}
|
||||
|
@ -10,6 +10,6 @@ import (
|
||||
func Test(t *testing.T) {
|
||||
gojs.Run(`
|
||||
import log from 'apigo.cc/gojs/log'
|
||||
log.info('some info', {extinfo: 'extinfo'})
|
||||
log.info('测试信息', {extinfo: 'extinfo'})
|
||||
`, "")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user