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

Method setForeignStr

object_dynamic.go:300–306  ·  view source on GitHub ↗
(p unistring.String, v, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

298}
299
300func (o *dynamicObject) setForeignStr(p unistring.String, v, receiver Value, throw bool) (res bool, handled bool) {
301 prop := p.String()
302 if !o.d.Has(prop) {
303 return o.setParentForeignStr(p, v, receiver, throw)
304 }
305 return false, false
306}
307
308func (o *baseDynamicObject) setParentForeignIdx(p valueInt, v, receiver Value, throw bool) (res bool, handled bool) {
309 if proto := o.prototype; proto != nil {

Callers

nothing calls this directly

Calls 3

setParentForeignStrMethod · 0.80
StringMethod · 0.65
HasMethod · 0.65

Tested by

no test coverage detected