MCPcopy Create free account
hub / github.com/pillarjs/multiparty / hijack

Function hijack

tool/bench-multipart-parser.js:71–77  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

69}
70
71function hijack(name, fn) {
72 var oldFn = form[name];
73 form[name] = function() {
74 fn();
75 return oldFn.apply(this, arguments);
76 };
77}
78

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…