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

Implemented try-catch block statements for catching and handling errors #694

Open
wants to merge 16 commits into
base: dev-next
Choose a base branch
from

Conversation

Luna-Klatzer
Copy link
Member

@Luna-Klatzer Luna-Klatzer commented Sep 7, 2024

What type of change does this PR perform?

  • Info or documentation change (Non-breaking change that updates repo info files (e.g. README.md, CONTRIBUTING.md, etc.) or online documentation)
  • Website (Change that changes the design or functionality of the websites or docs)
  • Development or internal changes (These changes do not add new features or fix bugs, but update the code in other ways)
  • Bug fix (Non-breaking change which fixes an issue)
  • New feature (Non-breaking change which adds functionality)
  • Breaking change (Major bug fix or feature that would cause existing functionality not to work as expected.)
  • Requires a documentation update, as it changes language or compiler behaviour

Summary

Implemented try-catch block statements for catching and handling errors. This PR simply implements a similar system which is already present in JavaScript, but with additional syntax sugar.

Closes #654

Detailed Changelog

Not present for website/docs changes

WIP...

Does this PR create new warnings?

WIP...

Linked issues or PRs

@Luna-Klatzer Luna-Klatzer added feature New feature or enhancement high priority High priority issue, discussion or pull request labels Sep 7, 2024
@Luna-Klatzer Luna-Klatzer added this to the v0.12.0 milestone Sep 7, 2024
@Luna-Klatzer Luna-Klatzer requested review from ByteWolf-dev and a team September 7, 2024 18:36
Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 93.44262% with 4 lines in your changes missing coverage. Please review.

Project coverage is 83.96%. Comparing base (393c994) to head (49b699d).

Files with missing lines Patch % Lines
...tements/try-catch-statement/try-catch-statement.ts 93.10% 2 Missing ⚠️
kipper/target-js/src/code-generator.ts 91.30% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           dev-next     #694      +/-   ##
============================================
+ Coverage     83.85%   83.96%   +0.10%     
============================================
  Files           283      285       +2     
  Lines          4938     4994      +56     
  Branches        544      551       +7     
============================================
+ Hits           4141     4193      +52     
- Misses          651      655       +4     
  Partials        146      146              
Flag Coverage Δ
83.96% <93.44%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Luna-Klatzer Luna-Klatzer modified the milestones: v0.12.0, v0.13.0 Sep 25, 2024
@Luna-Klatzer Luna-Klatzer force-pushed the 654-feature-implement-trycatch-statement-to-handle-exceptions branch from 4982c82 to 49b699d Compare September 27, 2024 09:58
@Luna-Klatzer Luna-Klatzer marked this pull request as ready for review September 27, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or enhancement high priority High priority issue, discussion or pull request
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants