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

Method definePropertySym

proxy.go:219–221  ·  view source on GitHub ↗
(target *Object, prop *Symbol, desc PropertyDescriptor)

Source from the content-addressed store, hash-verified

217}
218
219func (h *jsProxyHandler) definePropertySym(target *Object, prop *Symbol, desc PropertyDescriptor) (bool, bool) {
220 return h.boolProxyCall(proxy_trap_defineProperty, target, prop, desc.toValue(h.handler.runtime))
221}
222
223func (h *jsProxyHandler) hasStr(target *Object, prop unistring.String) (bool, bool) {
224 return h.boolProxyCall(proxy_trap_has, target, stringValueFromRaw(prop))

Callers

nothing calls this directly

Calls 2

boolProxyCallMethod · 0.95
toValueMethod · 0.65

Tested by

no test coverage detected