diff --git a/lib/debug/ProfilingPlugin.js b/lib/debug/ProfilingPlugin.js index 270d6eeb2dc..0ba10aea3d2 100644 --- a/lib/debug/ProfilingPlugin.js +++ b/lib/debug/ProfilingPlugin.js @@ -391,8 +391,8 @@ const makeNewProfiledTapFn = (hookName, tracer, { name, type, fn }) => { id, cat: defaultCategory }); + const callback = args.pop(); fn(...args, (...r) => { - const callback = args.pop(); tracer.trace.end({ name, id,