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

Method definePropertyStr

proxy.go:211–213  ·  view source on GitHub ↗
(target *Object, prop unistring.String, desc PropertyDescriptor)

Source from the content-addressed store, hash-verified

209}
210
211func (h *jsProxyHandler) definePropertyStr(target *Object, prop unistring.String, desc PropertyDescriptor) (bool, bool) {
212 return h.boolProxyCall(proxy_trap_defineProperty, target, stringValueFromRaw(prop), desc.toValue(h.handler.runtime))
213}
214
215func (h *jsProxyHandler) definePropertyIdx(target *Object, prop valueInt, desc PropertyDescriptor) (bool, bool) {
216 return h.boolProxyCall(proxy_trap_defineProperty, target, prop.toString(), desc.toValue(h.handler.runtime))

Callers

nothing calls this directly

Calls 3

boolProxyCallMethod · 0.95
stringValueFromRawFunction · 0.85
toValueMethod · 0.65

Tested by

no test coverage detected