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

Method set

vm.go:232–239  ·  view source on GitHub ↗
(v Value)

Source from the content-addressed store, hash-verified

230}
231
232func (r *objRef) set(v Value) {
233 key := r.getKey()
234 if r.this != nil {
235 r.base.set(key, v, r.this, r.strict)
236 } else {
237 r.base.setOwn(key, v, r.strict)
238 }
239}
240
241func (r *objRef) init(v Value) {
242 if r.this != nil {

Callers

nothing calls this directly

Calls 3

getKeyMethod · 0.95
setOwnMethod · 0.80
setMethod · 0.65

Tested by

no test coverage detected