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

Method setParentForeignStr

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

Source from the content-addressed store, hash-verified

288}
289
290func (o *baseDynamicObject) setParentForeignStr(p unistring.String, v, receiver Value, throw bool) (res bool, handled bool) {
291 if proto := o.prototype; proto != nil {
292 if receiver != proto {
293 return proto.self.setForeignStr(p, v, receiver, throw)
294 }
295 return proto.self.setOwnStr(p, v, throw), true
296 }
297 return false, false
298}
299
300func (o *dynamicObject) setForeignStr(p unistring.String, v, receiver Value, throw bool) (res bool, handled bool) {
301 prop := p.String()

Callers 2

setForeignStrMethod · 0.80
setForeignStrMethod · 0.80

Calls 2

setForeignStrMethod · 0.65
setOwnStrMethod · 0.65

Tested by

no test coverage detected