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: do not store string #208

Merged
merged 1 commit into from
Nov 23, 2021
Merged

fix: do not store string #208

merged 1 commit into from
Nov 23, 2021

Conversation

eventualbuddha
Copy link
Owner

There's no need to keep a reference to the original string. Doing so just prevents it from being GC'd. This also marks the properties as readonly and changes the SourceLocation type to be an interface instead.

There's no need to keep a reference to the original string. Doing so just prevents it from being GC'd. This also marks the properties as `readonly` and changes the `SourceLocation` type to be an `interface` instead.
@eventualbuddha eventualbuddha merged commit 5febeb9 into main Nov 23, 2021
@eventualbuddha eventualbuddha deleted the fix/do-not-store-string branch November 23, 2021 03:14
@github-actions
Copy link

🎉 This PR is included in version 2.0.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant