MCPcopy Create free account
hub / github.com/Effect-TS/effect / construct

Function construct

packages/effect/test/StackCapture.test.ts:21–24  ·  view source on GitHub ↗
(target, args, newTarget)

Source from the content-addressed store, hash-verified

19 let count = 0
20 globalThis.Error = new Proxy(original, {
21 construct(target, args, newTarget) {
22 count++
23 return Reflect.construct(target, args, newTarget)
24 }
25 })
26 try {
27 run()

Callers 1

makeClassSyncFunction · 0.50

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected