Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1712-stepper-bug-that-causes-frontend-crash #1717

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

hanscau
Copy link
Contributor

@hanscau hanscau commented Sep 9, 2024

Description

Fix second statement being a ReturnStatement in a BlockStatement. The first statement should be reduced before going to the return statement.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvements

How to test

Tests already exists, the expected case was just wrong.

Checklist

  • I have tested this code

@hanscau hanscau linked an issue Sep 9, 2024 that may be closed by this pull request
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10777371951

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 81.525%

Totals Coverage Status
Change from base Build 10756964754: 0.001%
Covered Lines: 10921
Relevant Lines: 13029

💛 - Coveralls

Copy link
Member

@martin-henz martin-henz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard to follow the complex logic of reduction of blocks. This PR is not making it worse, and is fixing the given issue. So: best we merge this. (Eventually we should consider simplifying the stepper design.)

@martin-henz martin-henz merged commit 0a284d2 into master Sep 9, 2024
4 checks passed
@martin-henz martin-henz deleted the 1712-stepper-bug-that-causes-frontend-crash branch September 9, 2024 17:05
@FYL2003
Copy link
Contributor

FYL2003 commented Sep 10, 2024

Just some ideas: maybe breaking the big chunk of code into small functional pieces(each function into separate ts files) and add more comment on how the code words would help people better understand the code base.

@martin-henz
Copy link
Member

The main problem is that the stepper implementation is not closely aligned with the specs. I think we need a re-implementation from scratch to make the stepper maintainable. I'll form a CP3108 project on this next semester.

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.

Stepper: bug that causes frontend crash
4 participants