Skip to content

fails partially rolls back the failure state #2591

Description

@sauclovian-g

The fails builtin runs its argument action in a copy of the interpreter (TopLevel) state, and discards the state produced by that run.

It does not, however, checkpoint and restore state we're keeping in IO, which includes the saw-core state.

This seems like it's bound to result in problems at some point, like other things in SAWScript that make the same assumptions.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    subsystem: saw-scriptIssues related to the SAWScript language and/or its interpretation and executiontech debtIssues that document or involve technical debttopics: error-handlingIssues involving the way SAW responds to an error conditiontype: bugIssues reporting bugs or unexpected/unwanted behavior

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions