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

Method getSym

proxy.go:625–636  ·  view source on GitHub ↗
(s *Symbol, receiver Value)

Source from the content-addressed store, hash-verified

623}
624
625func (p *proxyObject) getSym(s *Symbol, receiver Value) Value {
626 target := p.target
627 if receiver == nil {
628 receiver = p.val
629 }
630 if v, ok := p.checkHandler().getSym(target, s, receiver); ok {
631 p.proxyGetChecks(target.self.getOwnPropSym(s), v, s)
632 return v
633 }
634
635 return target.self.getSym(s, receiver)
636}
637
638func (p *proxyObject) proxySetPreCheck(trapResult, throw bool, name fmt.Stringer) bool {
639 if !trapResult {

Callers

nothing calls this directly

Calls 4

checkHandlerMethod · 0.95
proxyGetChecksMethod · 0.95
getSymMethod · 0.65
getOwnPropSymMethod · 0.65

Tested by

no test coverage detected