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

Method deleteStr

proxy.go:735–743  ·  view source on GitHub ↗
(name unistring.String, throw bool)

Source from the content-addressed store, hash-verified

733}
734
735func (p *proxyObject) deleteStr(name unistring.String, throw bool) bool {
736 target := p.target
737 if v, ok := p.checkHandler().deleteStr(target, name); ok {
738 p.proxyDeleteCheck(v, target.self.getOwnPropStr(name), name, target, throw)
739 return v
740 }
741
742 return target.self.deleteStr(name, throw)
743}
744
745func (p *proxyObject) deleteIdx(idx valueInt, throw bool) bool {
746 target := p.target

Callers

nothing calls this directly

Calls 4

checkHandlerMethod · 0.95
proxyDeleteCheckMethod · 0.95
deleteStrMethod · 0.65
getOwnPropStrMethod · 0.65

Tested by

no test coverage detected