ToString returns the string representation of the value.
()
| 142 | |
| 143 | // ToString returns the string representation of the value. |
| 144 | func (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. |
| 151 | func (v *Value) JSONStringify() string { |
no outgoing calls
no test coverage detected