ToValue returns the value representation of the atom.
()
| 34 | |
| 35 | // ToValue returns the value representation of the atom. |
| 36 | func (a *Atom) ToValue() *Value { |
| 37 | return &Value{ctx: a.ctx, ref: C.JS_AtomToValue(a.ctx.ref, a.ref)} |
| 38 | } |
| 39 | |
| 40 | // Dup increments the atom reference count and returns a new Atom handle. |
| 41 | func (a *Atom) Dup() *Atom { |
no outgoing calls