Skip to content

Commit

Permalink
Merge pull request #340 from xypwn/main
Browse files Browse the repository at this point in the history
 Fix rerun bug
  • Loading branch information
refaktor committed Sep 8, 2024
2 parents c1a0c4d + bfbc073 commit 816bc14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions evaldo/evaldo.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ func CallFunctionArgs2(fn env.Function, ps *env.ProgramState, arg0 env.Object, a
/// ps.Ctx = fnCtx

var result *env.ProgramState
ps.Ser.SetPos(0)
psX.Ser.SetPos(0)
result = EvalBlockInj(psX, arg0, true)
// fmt.Println(result)
// fmt.Println(result.Res)
Expand Down Expand Up @@ -824,7 +824,7 @@ func CallFunctionArgs4(fn env.Function, ps *env.ProgramState, arg0 env.Object, a

// END TRY
var result *env.ProgramState
ps.Ser.SetPos(0)
psX.Ser.SetPos(0)
result = EvalBlockInj(psX, arg0, true)
MaybeDisplayFailureOrError(result, result.Idx)
if result.ForcedResult != nil {
Expand Down Expand Up @@ -884,7 +884,7 @@ func CallFunctionArgsN(fn env.Function, ps *env.ProgramState, ctx *env.RyeCtx, a

// END TRY
var result *env.ProgramState
ps.Ser.SetPos(0)
psX.Ser.SetPos(0)
if len(args) > 0 {
result = EvalBlockInj(psX, args[0], true)
} else {
Expand Down

0 comments on commit 816bc14

Please sign in to comment.