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

Method proxySetIdx

proxy.go:669–679  ·  view source on GitHub ↗
(idx valueInt, value, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

667}
668
669func (p *proxyObject) proxySetIdx(idx valueInt, value, receiver Value, throw bool) bool {
670 target := p.target
671 if v, ok := p.checkHandler().setIdx(target, idx, value, receiver); ok {
672 if p.proxySetPreCheck(v, throw, idx) {
673 p.proxySetPostCheck(target.self.getOwnPropIdx(idx), value, idx)
674 return true
675 }
676 return false
677 }
678 return target.setIdx(idx, value, receiver, throw)
679}
680
681func (p *proxyObject) proxySetSym(s *Symbol, value, receiver Value, throw bool) bool {
682 target := p.target

Callers 2

setOwnIdxMethod · 0.95
setForeignIdxMethod · 0.95

Calls 5

checkHandlerMethod · 0.95
proxySetPreCheckMethod · 0.95
proxySetPostCheckMethod · 0.95
setIdxMethod · 0.65
getOwnPropIdxMethod · 0.65

Tested by

no test coverage detected