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

Method toPrimitiveString

object.go:898–904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

896}
897
898func (o *Object) toPrimitiveString() Value {
899 if v := o.tryExoticToPrimitive(hintString); v != nil {
900 return v
901 }
902
903 return o.ordinaryToPrimitiveString()
904}
905
906func (o *Object) toPrimitive() Value {
907 if v := o.tryExoticToPrimitive(hintDefault); v != nil {

Callers 4

toStringMethod · 0.95
stringMethod · 0.95
ToStringMethod · 0.95
StringMethod · 0.95

Calls 2

tryExoticToPrimitiveMethod · 0.95

Tested by

no test coverage detected