MCPcopy
hub / github.com/patriksimek/vm2 / apply

Function apply

lib/setup-sandbox.js:1607–1609  ·  view source on GitHub ↗
(target, thiz, args)

Source from the content-addressed store, hash-verified

1605const FunctionHandler = {
1606 __proto__: null,
1607 apply(target, thiz, args) {
1608 return makeFunction(args, this.isAsync, this.isGenerator);
1609 },
1610 construct(target, args, newTarget) {
1611 return makeFunction(args, this.isAsync, this.isGenerator);
1612 },

Callers 10

constructorMethod · 0.85
setup-sandbox.jsFile · 0.85
localReflectApplyFunction · 0.85
applyMethod · 0.85
constructMethod · 0.85
allocFunction · 0.85
handleExceptionFunction · 0.85
sanitizeThenableArgFunction · 0.85
wrapAsyncGenMethodFunction · 0.85

Calls 6

makeFunctionFunction · 0.85
throwAsyncFunction · 0.85
localReflectApplyFunction · 0.85
makeSafeHandlerArgsFunction · 0.85
wrapProxyHandlerFunction · 0.85
handleExceptionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…