ToInt32 returns the int32 value of the value.
()
| 188 | |
| 189 | // ToInt32 returns the int32 value of the value. |
| 190 | func (v *Value) ToInt32() int32 { |
| 191 | val := C.int32_t(0) |
| 192 | C.JS_ToInt32(v.ctx.ref, &val, v.ref) |
| 193 | return int32(val) |
| 194 | } |
| 195 | |
| 196 | // Deprecated: Use ToUint32 instead. |
| 197 | func (v *Value) Uint32() uint32 { |
no outgoing calls