MCPcopy Create free account
hub / github.com/buke/quickjs-go / ToString

Method ToString

value.go:144–148  ·  view source on GitHub ↗

ToString returns the string representation of the value.

()

Source from the content-addressed store, hash-verified

142
143// ToString returns the string representation of the value.
144func (v *Value) ToString() string {
145 ptr := C.JS_ToCString(v.ctx.ref, v.ref)
146 defer C.JS_FreeCString(v.ctx.ref, ptr)
147 return C.GoString(ptr)
148}
149
150// JSONStringify returns the JSON string representation of the value.
151func (v *Value) JSONStringify() string {

Callers 4

StringMethod · 0.95
ToBigIntMethod · 0.95
ToErrorMethod · 0.45
PropertyNamesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected