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

Use const/let instead of var #176

Merged
merged 1 commit into from Dec 15, 2021
Merged

Conversation

lazarljubenovic
Copy link
Contributor

No description provided.

@@ -4,12 +4,12 @@
const fixture = [];

function test(testcase, mode) {
var el = document.createElement('div');
Copy link
Member

Choose a reason for hiding this comment

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

This module should be written in ES5 to able run it in old browsers without a transpilation. Please, revert changes. You might add a warning comment to avoid the same changes in future (or I will add such a comment by myself).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm, the first line (besides imports) has a const, though. I have no idea how the whole thing works. Should I change that to var as well or only revert this file?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, change for var please. I suppose const works in IE11 somehow and I missed that.

@lazarljubenovic
Copy link
Contributor Author

Whopes, sorry for closing, accidentally pushed no commits. Should be fixed now; I've added the comment as well.

@coveralls
Copy link

coveralls commented Dec 15, 2021

Coverage Status

Coverage remained the same at 98.896% when pulling 584e20f on lazarljubenovic:prefer-const into a22c8be on csstree:master.

@lahmatiy lahmatiy merged commit 949e04d into csstree:master Dec 15, 2021
@lahmatiy
Copy link
Member

@lazarljubenovic Thank you!

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.

None yet

3 participants