@@ -862,7 +862,7 @@ export function forEach<
862862 lastContext = createContext (
863863 lastContext || context ,
864864 value ,
865- context . execution . path . concat ( String ( index ) )
865+ context . execution . path && context . execution . path . concat ( String ( index ) )
866866 )
867867 const nextWithPath = createNextPath ( evaluate )
868868 forEachItemOperator ( null , lastContext , nextWithPath )
@@ -904,7 +904,7 @@ export function parallel<Input, ThisConfig extends Configuration = Config>(
904904 lastContext = createContext (
905905 lastContext || context ,
906906 context . value ,
907- context . execution . path . concat ( String ( index ) )
907+ context . execution . path && context . execution . path . concat ( String ( index ) )
908908 )
909909 const nextWithPath = createNextPath ( evaluate )
910910 operator ( null , lastContext , nextWithPath )
@@ -1009,7 +1009,7 @@ export function fork<
10091009 const newContext = createContext (
10101010 context ,
10111011 context . value ,
1012- context . execution . path . concat ( path )
1012+ context . execution . path && context . execution . path . concat ( path )
10131013 )
10141014 const nextWithPaths = createNextPath ( ( err , returnedContext ) => {
10151015 if ( err ) next ( err )
@@ -1045,7 +1045,7 @@ export function when<
10451045 const newContext = createContext (
10461046 context ,
10471047 context . value ,
1048- context . execution . path . concat ( 'true' )
1048+ context . execution . path && context . execution . path . concat ( 'true' )
10491049 )
10501050 if ( operation ( context ) ) {
10511051 const nextWithPath = createNextPath ( next )
@@ -1055,7 +1055,7 @@ export function when<
10551055 const newContext = createContext (
10561056 context ,
10571057 context . value ,
1058- context . execution . path . concat ( 'false' )
1058+ context . execution . path && context . execution . path . concat ( 'false' )
10591059 )
10601060 const nextWithPath = createNextPath ( next )
10611061 stopDebugOperator ( context , context . value )
0 commit comments