MCPcopy
hub / github.com/webpack/tapable / wrapFrame

Function wrapFrame

benchmark/with-codspeed.mjs:119–130  ·  view source on GitHub ↗
(fn, isAsync)

Source from the content-addressed store, hash-verified

117 * @returns {Fn}
118 */
119 const wrapFrame = (fn, isAsync) => {
120 if (isAsync) {
121 // eslint-disable-next-line camelcase
122 return async function __codspeed_root_frame__() {
123 await fn();
124 };
125 }
126 // eslint-disable-next-line camelcase
127 return function __codspeed_root_frame__() {
128 fn();
129 };
130 };
131
132 bench.run = async () => {
133 setup();

Callers 1

withCodSpeedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…