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

Method getStr

proxy.go:235–237  ·  view source on GitHub ↗
(target *Object, prop unistring.String, receiver Value)

Source from the content-addressed store, hash-verified

233}
234
235func (h *jsProxyHandler) getStr(target *Object, prop unistring.String, receiver Value) (Value, bool) {
236 return h.proxyCall(proxy_trap_get, target, stringValueFromRaw(prop), receiver)
237}
238
239func (h *jsProxyHandler) getIdx(target *Object, prop valueInt, receiver Value) (Value, bool) {
240 return h.proxyCall(proxy_trap_get, target, prop.toString(), receiver)

Callers

nothing calls this directly

Calls 2

proxyCallMethod · 0.95
stringValueFromRawFunction · 0.85

Tested by

no test coverage detected