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

Method init

vm.go:283–289  ·  view source on GitHub ↗
(v Value)

Source from the content-addressed store, hash-verified

281}
282
283func (r *objStrRef) init(v Value) {
284 if r.this != nil {
285 r.base.setStr(r.name, v, r.this, r.strict)
286 } else {
287 r.base.self.setOwnStr(r.name, v, r.strict)
288 }
289}
290
291func (r *objStrRef) refname() unistring.String {
292 return r.name

Callers

nothing calls this directly

Calls 2

setStrMethod · 0.65
setOwnStrMethod · 0.65

Tested by

no test coverage detected