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

Method hasPropertyStr

proxy.go:461–471  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

459}
460
461func (p *proxyObject) hasPropertyStr(name unistring.String) bool {
462 target := p.target
463 if b, ok := p.checkHandler().hasStr(target, name); ok {
464 if !b {
465 p.proxyHasChecks(target.self.getOwnPropStr(name), target, name)
466 }
467 return b
468 }
469
470 return target.self.hasPropertyStr(name)
471}
472
473func (p *proxyObject) hasPropertyIdx(idx valueInt) bool {
474 target := p.target

Callers

nothing calls this directly

Calls 5

checkHandlerMethod · 0.95
proxyHasChecksMethod · 0.95
hasStrMethod · 0.65
getOwnPropStrMethod · 0.65
hasPropertyStrMethod · 0.65

Tested by

no test coverage detected