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

Method getOwnPropertyDescriptorStr

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

Source from the content-addressed store, hash-verified

197}
198
199func (h *jsProxyHandler) getOwnPropertyDescriptorStr(target *Object, prop unistring.String) (Value, bool) {
200 return h.proxyCall(proxy_trap_getOwnPropertyDescriptor, target, stringValueFromRaw(prop))
201}
202
203func (h *jsProxyHandler) getOwnPropertyDescriptorIdx(target *Object, prop valueInt) (Value, bool) {
204 return h.proxyCall(proxy_trap_getOwnPropertyDescriptor, target, prop.toString())

Callers

nothing calls this directly

Calls 2

proxyCallMethod · 0.95
stringValueFromRawFunction · 0.85

Tested by

no test coverage detected