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

Method hasPropertyIdx

proxy.go:473–483  ·  view source on GitHub ↗
(idx valueInt)

Source from the content-addressed store, hash-verified

471}
472
473func (p *proxyObject) hasPropertyIdx(idx valueInt) bool {
474 target := p.target
475 if b, ok := p.checkHandler().hasIdx(target, idx); ok {
476 if !b {
477 p.proxyHasChecks(target.self.getOwnPropIdx(idx), target, idx)
478 }
479 return b
480 }
481
482 return target.self.hasPropertyIdx(idx)
483}
484
485func (p *proxyObject) hasPropertySym(s *Symbol) bool {
486 target := p.target

Callers

nothing calls this directly

Calls 5

checkHandlerMethod · 0.95
proxyHasChecksMethod · 0.95
hasIdxMethod · 0.65
getOwnPropIdxMethod · 0.65
hasPropertyIdxMethod · 0.65

Tested by

no test coverage detected