Skip to content

Commit

Permalink
chore: fixed a couple of typos (#1271)
Browse files Browse the repository at this point in the history
* chore: fixed typo in comment

* chore: fixed typos in test case
  • Loading branch information
TimShilov committed Oct 5, 2022
1 parent 089e32a commit 34e8262
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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: {
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 }
}
}

0 comments on commit 34e8262

Please sign in to comment.