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

Method proxySetStr

proxy.go:657–667  ·  view source on GitHub ↗
(name unistring.String, value, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

655}
656
657func (p *proxyObject) proxySetStr(name unistring.String, value, receiver Value, throw bool) bool {
658 target := p.target
659 if v, ok := p.checkHandler().setStr(target, name, value, receiver); ok {
660 if p.proxySetPreCheck(v, throw, name) {
661 p.proxySetPostCheck(target.self.getOwnPropStr(name), value, name)
662 return true
663 }
664 return false
665 }
666 return target.setStr(name, value, receiver, throw)
667}
668
669func (p *proxyObject) proxySetIdx(idx valueInt, value, receiver Value, throw bool) bool {
670 target := p.target

Callers 2

setOwnStrMethod · 0.95
setForeignStrMethod · 0.95

Calls 5

checkHandlerMethod · 0.95
proxySetPreCheckMethod · 0.95
proxySetPostCheckMethod · 0.95
setStrMethod · 0.65
getOwnPropStrMethod · 0.65

Tested by

no test coverage detected