MCPcopy Index your code
hub / github.com/nodejs/node / wrapFunction

Function wrapFunction

test/fixtures/snapshot/typescript.js:3243–3248  ·  view source on GitHub ↗
(deprecation, func)

Source from the content-addressed store, hash-verified

3241 ts.noop;
3242 }
3243 function wrapFunction(deprecation, func) {
3244 return function () {
3245 deprecation();
3246 return func.apply(this, arguments);
3247 };
3248 }
3249 function deprecate(func, options) {
3250 var deprecation = createDeprecation(getFunctionName(func), options);
3251 return wrapFunction(deprecation, func);

Callers 1

deprecateFunction · 0.85

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected