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

Method preventExtensions

proxy.go:195–197  ·  view source on GitHub ↗
(target *Object)

Source from the content-addressed store, hash-verified

193}
194
195func (h *jsProxyHandler) preventExtensions(target *Object) (bool, bool) {
196 return h.boolProxyCall(proxy_trap_preventExtensions, target)
197}
198
199func (h *jsProxyHandler) getOwnPropertyDescriptorStr(target *Object, prop unistring.String) (Value, bool) {
200 return h.proxyCall(proxy_trap_getOwnPropertyDescriptor, target, stringValueFromRaw(prop))

Callers

nothing calls this directly

Calls 1

boolProxyCallMethod · 0.95

Tested by

no test coverage detected