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

fix: failure for toString called as a static function instead of a method #745

Merged
merged 4 commits into from
Aug 26, 2024

Conversation

anton-trunov
Copy link
Member

Closes #744

This required redesigning the compiler context storage implementation, because it used Record type which has toString inherited from Object.prototype.
This fix changes Record to Map to avoid these issues and convey the meaning in a clearer way.

  • I have updated CHANGELOG.md
  • I have added tests to demonstrate the contribution is correctly implemented: this usually includes both positive and negative tests, showing the happy path(s) and featuring intentionally broken cases
  • I have run all the tests locally and no test failure was reported
  • I have run the linter, formatter and spellchecker
  • I did not do unrelated and/or undiscussed refactorings

…method

This required redesigning the compiler context storage implementation,
because it used `Record` type which has `toString` inherited from
`Object.prototype`.
This fix changes `Record` to `Map` to avoid these issues and convey
the meaning in a clearer way.
@anton-trunov anton-trunov added this to the v1.5.0 milestone Aug 26, 2024
@anton-trunov anton-trunov self-assigned this Aug 26, 2024
@anton-trunov anton-trunov merged commit 7055ce3 into main Aug 26, 2024
5 checks passed
@anton-trunov anton-trunov deleted the fix-error-message-for-toString branch August 26, 2024 10:29
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.

Tact failes to resolve expression with TypeError
1 participant