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

Method deleteIdx

proxy.go:745–753  ·  view source on GitHub ↗
(idx valueInt, throw bool)

Source from the content-addressed store, hash-verified

743}
744
745func (p *proxyObject) deleteIdx(idx valueInt, throw bool) bool {
746 target := p.target
747 if v, ok := p.checkHandler().deleteIdx(target, idx); ok {
748 p.proxyDeleteCheck(v, target.self.getOwnPropIdx(idx), idx, target, throw)
749 return v
750 }
751
752 return target.self.deleteIdx(idx, throw)
753}
754
755func (p *proxyObject) deleteSym(s *Symbol, throw bool) bool {
756 target := p.target

Callers

nothing calls this directly

Calls 4

checkHandlerMethod · 0.95
proxyDeleteCheckMethod · 0.95
deleteIdxMethod · 0.65
getOwnPropIdxMethod · 0.65

Tested by

no test coverage detected