MCPcopy Create free account
hub / github.com/dop251/goja / toString

Function toString

builtin_string.go:27–35  ·  view source on GitHub ↗
(arg Value)

Source from the content-addressed store, hash-verified

25}
26
27func toString(arg Value) String {
28 if s, ok := arg.(String); ok {
29 return s
30 }
31 if s, ok := arg.(*Symbol); ok {
32 return s.descriptiveString()
33 }
34 return arg.toString()
35}
36
37func (r *Runtime) builtin_String(call FunctionCall) Value {
38 if len(call.Arguments) > 0 {

Callers 5

arrayproto_toStringMethod · 0.85
builtin_StringMethod · 0.85
objectproto_toStringMethod · 0.85

Calls 2

descriptiveStringMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…