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

Method hasStr

proxy.go:223–225  ·  view source on GitHub ↗
(target *Object, prop unistring.String)

Source from the content-addressed store, hash-verified

221}
222
223func (h *jsProxyHandler) hasStr(target *Object, prop unistring.String) (bool, bool) {
224 return h.boolProxyCall(proxy_trap_has, target, stringValueFromRaw(prop))
225}
226
227func (h *jsProxyHandler) hasIdx(target *Object, prop valueInt) (bool, bool) {
228 return h.boolProxyCall(proxy_trap_has, target, prop.toString())

Callers

nothing calls this directly

Calls 2

boolProxyCallMethod · 0.95
stringValueFromRawFunction · 0.85

Tested by

no test coverage detected