-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix(let): refactor let #526
fix(let): refactor let #526
Conversation
Default issue template, proposed by Github
add questions about the details and importance of this feature request
…late Update feature request issue template
Hi @YonatanKra , could you please review my changes in this PR? 🙂 |
feat(chore): feature request issue template (CatchTheTornado#525)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good progress @dastin-sandura, thanks for working on this 👍
cb6accc
to
7dd2b2b
Compare
Thank you for your review 😄 I will review your comments and make changes |
…ng what let returns
…constant after it was initialized
Thank you for your reviews 😄 @mhagmajer and @YonatanKra |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Almost there!
See my comments. The only must is the change in the tests (to use an expect syntax).
The rest are mostly clarifications I could use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @mhagmajer ?
* Default issue template, proposed by Github * Update feature request issue template add questions about the details and importance of this feature request * Changes add file with implementation of const, remove const parts from let.ts extract const and assign from let.ts, extract tests for const and assign from let tests * remove logs, unused function, and check if code === const * change 'let' test retrieval of a let variable value instead of checking what let returns * remove code which runs when using 'assign' from let.ts * remove condition on assign, add flag to decide when to throw 'unknown variable error' * remove commented code from assign.ts * Test for 'assign' which makes sure that you cannot assign value to a constant after it was initialized * Change test naming * const.test for making sure that const is Object.isFrozen() * assign test for throwing when assigning value to an undeclared variable * assign test for checking assignment to reserved keyword variables * change if to proper jest expect assertion
This reverts commit 43385c3.
closes #521