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

Method proxySetSym

proxy.go:681–691  ·  view source on GitHub ↗
(s *Symbol, value, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

679}
680
681func (p *proxyObject) proxySetSym(s *Symbol, value, receiver Value, throw bool) bool {
682 target := p.target
683 if v, ok := p.checkHandler().setSym(target, s, value, receiver); ok {
684 if p.proxySetPreCheck(v, throw, s) {
685 p.proxySetPostCheck(target.self.getOwnPropSym(s), value, s)
686 return true
687 }
688 return false
689 }
690 return target.setSym(s, value, receiver, throw)
691}
692
693func (p *proxyObject) setOwnStr(name unistring.String, v Value, throw bool) bool {
694 return p.proxySetStr(name, v, p.val, throw)

Callers 2

setOwnSymMethod · 0.95
setForeignSymMethod · 0.95

Calls 5

checkHandlerMethod · 0.95
proxySetPreCheckMethod · 0.95
proxySetPostCheckMethod · 0.95
setSymMethod · 0.65
getOwnPropSymMethod · 0.65

Tested by

no test coverage detected