Update rules.go

This commit is contained in:
0xLogicalx 2025-11-25 23:57:53 +01:00 committed by GitHub
parent b04df226fa
commit f7b662f7d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ import (
func consoleOutput(call goja.FunctionCall) goja.Value { func consoleOutput(call goja.FunctionCall) goja.Value {
output := []string{"JS:> "} output := []string{"JS:> "}
for _, argument := range call.Arguments { for _, argument := range call.Arguments {
output = append(output, fmt.Sprintf("%v", argument)) output = append(output, fmt.Sprint(argument))
} }
fmt.Fprintln(os.Stderr, strings.Join(output, " ")) fmt.Fprintln(os.Stderr, strings.Join(output, " "))
return goja.Undefined() return goja.Undefined()