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

Method ToValue

atom.go:36–38  ·  view source on GitHub ↗

ToValue returns the value representation of the atom.

()

Source from the content-addressed store, hash-verified

34
35// ToValue returns the value representation of the atom.
36func (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.
41func (a *Atom) Dup() *Atom {

Callers 5

ValueMethod · 0.95
TestAtomBasicsFunction · 0.95
TestAtomSpecialCasesFunction · 0.95
TestAtomEdgeCasesFunction · 0.95
TestDeprecatedAtomAPIsFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestAtomBasicsFunction · 0.76
TestAtomSpecialCasesFunction · 0.76
TestAtomEdgeCasesFunction · 0.76
TestDeprecatedAtomAPIsFunction · 0.76