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

Method setStr

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

Source from the content-addressed store, hash-verified

245}
246
247func (h *jsProxyHandler) setStr(target *Object, prop unistring.String, value Value, receiver Value) (bool, bool) {
248 return h.boolProxyCall(proxy_trap_set, target, stringValueFromRaw(prop), value, receiver)
249}
250
251func (h *jsProxyHandler) setIdx(target *Object, prop valueInt, value Value, receiver Value) (bool, bool) {
252 return h.boolProxyCall(proxy_trap_set, target, prop.toString(), value, receiver)

Callers

nothing calls this directly

Calls 2

boolProxyCallMethod · 0.95
stringValueFromRawFunction · 0.85

Tested by

no test coverage detected