Skip to content

fix(engine): report the correct step after Fork ignores an error - #67

Open
dexterhere-2k wants to merge 1 commit into
OWASP:mainfrom
dexterhere-2k:fix/fork-error-attribution
Open

dexterhere-2k wants to merge 1 commit into
OWASP:mainfrom
dexterhere-2k:fix/fork-error-attribution

Conversation

@dexterhere-2k

Copy link
Copy Markdown

What this changes

With Ignore errors enabled, Fork kept the original branch input but left the
branch error in the engine's saved state. If a later step failed, DecodeBox
reported the ignored error instead.

Clear the saved error when Fork handles it. If Ignore errors is off, Fork
still passes the original error through.

Related issue

Closes #61

How it was tested

  • Added a regression test for Fork → From Hex → Merge → Jump with input
    44\nZZ and no Label step. It checks that DecodeBox reports step 4 with
    No label called 'top' in this recipe.
  • Confirmed the regression test fails without the fix.
  • Ran npm test -- --run src/engine/tests/flow.test.ts: all 28 tests passed.

Checklist

  • Full lint, typecheck, test, and build checks pass locally
  • Added a regression test that fails without the fix
  • No any, unsafe evaluation, or new runtime dependencies

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recipe reports an ignored Fork error when a later Jump fails

1 participant