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

Method boolProxyCall

proxy.go:170–175  ·  view source on GitHub ↗
(trap proxyTrap, args ...Value)

Source from the content-addressed store, hash-verified

168}
169
170func (h *jsProxyHandler) boolProxyCall(trap proxyTrap, args ...Value) (bool, bool) {
171 if v, ok := h.proxyCall(trap, args...); ok {
172 return v.ToBoolean(), true
173 }
174 return false, false
175}
176
177func (h *jsProxyHandler) getPrototypeOf(target *Object) (Value, bool) {
178 return h.proxyCall(proxy_trap_getPrototypeOf, target)

Callers 15

setPrototypeOfMethod · 0.95
isExtensibleMethod · 0.95
preventExtensionsMethod · 0.95
definePropertyStrMethod · 0.95
definePropertyIdxMethod · 0.95
definePropertySymMethod · 0.95
hasStrMethod · 0.95
hasIdxMethod · 0.95
hasSymMethod · 0.95
setStrMethod · 0.95
setIdxMethod · 0.95
setSymMethod · 0.95

Calls 2

proxyCallMethod · 0.95
ToBooleanMethod · 0.65

Tested by

no test coverage detected