diff --git a/packages/async-flow/src/async-flow.js b/packages/async-flow/src/async-flow.js index 492b0cd78924..e16cc96e01b7 100644 --- a/packages/async-flow/src/async-flow.js +++ b/packages/async-flow/src/async-flow.js @@ -386,7 +386,7 @@ export const prepareAsyncFlowTools = (outerZone, outerOptions = {}) => { */ const asyncFlow = (zone, tag, guestFunc, options = undefined) => { const makeAsyncFlowKit = prepareAsyncFlowKit(zone, tag, guestFunc, options); - const hostFuncName = `${guestFunc.name || 'anon'}_hostWrapper`; + const hostFuncName = `${tag}_hostFlow`; const wrapperFunc = { [hostFuncName](...args) { const { flow } = makeAsyncFlowKit(args);