MCPcopy Create free account
hub / github.com/dop251/goja / init

Method init

vm.go:241–247  ·  view source on GitHub ↗
(v Value)

Source from the content-addressed store, hash-verified

239}
240
241func (r *objRef) init(v Value) {
242 if r.this != nil {
243 r.base.set(r.getKey(), v, r.this, r.strict)
244 } else {
245 r.base.setOwn(r.getKey(), v, r.strict)
246 }
247}
248
249func (r *objRef) refname() unistring.String {
250 return r.getKey().string()

Callers

nothing calls this directly

Calls 3

getKeyMethod · 0.95
setOwnMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected