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

chore: fixed a couple of typos #1271

Merged
merged 2 commits into from Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/output.js
Expand Up @@ -255,7 +255,7 @@ function OutputStream(options) {
if (options.shorthand === undefined)
options.shorthand = options.ecma > 5;

// Convert comment option to RegExp if neccessary and set up comments filter
// Convert comment option to RegExp if necessary and set up comments filter
var comment_filter = return_false; // Default case, throw all comments away
if (options.comments) {
let comments = options.comments;
Expand Down
10 changes: 5 additions & 5 deletions test/compress/issue-143.js
Expand Up @@ -12,7 +12,7 @@
* a >= (a = parseInt('100')) → 99 >= 100 → false
*/

tranformation_sort_order_equal: {
transformation_sort_order_equal: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tranformation was missing "s"

options = {
comparisons: true,
}
Expand All @@ -21,7 +21,7 @@ tranformation_sort_order_equal: {
expect: { (a = parseInt('100')) == a }
}

tranformation_sort_order_unequal: {
transformation_sort_order_unequal: {
options = {
comparisons: true,
}
Expand All @@ -30,19 +30,19 @@ tranformation_sort_order_unequal: {
expect: { (a = parseInt('100')) != a }
}

tranformation_sort_order_lesser_or_equal: {
transformation_sort_order_lesser_or_equal: {
options = {
comparisons: true,
}

input: { (a = parseInt('100')) <= a }
expect: { (a = parseInt('100')) <= a }
}
tranformation_sort_order_greater_or_equal: {
transformation_sort_order_greater_or_equal: {
options = {
comparisons: true,
}

input: { (a = parseInt('100')) >= a }
expect: { (a = parseInt('100')) >= a }
}
}