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

Method construct

proxy.go:282–284  ·  view source on GitHub ↗
(target *Object, args []Value, newTarget *Object)

Source from the content-addressed store, hash-verified

280}
281
282func (h *jsProxyHandler) construct(target *Object, args []Value, newTarget *Object) (Value, bool) {
283 return h.proxyCall(proxy_trap_construct, target, h.handler.runtime.newArrayValues(args), newTarget)
284}
285
286type proxyObject struct {
287 baseObject

Callers

nothing calls this directly

Calls 2

proxyCallMethod · 0.95
newArrayValuesMethod · 0.80

Tested by

no test coverage detected