Skip to content

Commit

Permalink
[[Chore]] Fix typos found in comments and test description messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Apr 9, 2019
1 parent 82b49c4 commit ca96d2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var state = {
},

/**
* Determine if constructs introduced in ECMAScript 8 should be accepted.
* Determine if constructs introduced in ECMAScript 9 should be accepted.
*
* @returns {boolean}
*/
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -9834,7 +9834,7 @@ exports.asyncGenerators.classMethod = function (test) {
};

exports.asyncIteration = function (test) {
TestRun(test, "inavailability in prior editions")
TestRun(test, "unavailability in prior editions")
.addError(2, 7, "'asynchronous iteration' is only available in ES9 (use 'esversion: 9').")
.addError(3, 7, "'asynchronous iteration' is only available in ES9 (use 'esversion: 9').")
.addError(4, 7, "'asynchronous iteration' is only available in ES9 (use 'esversion: 9').")
Expand All @@ -9858,23 +9858,23 @@ exports.asyncIteration = function (test) {
"}"
], { esversion: 9 });

TestRun(test, "inavailability in synchronous contexts")
TestRun(test, "unavailability in synchronous contexts")
.addError(2, 7, "Unexpected 'await'.")
.test([
"function f() {",
" for await (var x of []) {}",
"}"
], { esversion: 9 });

TestRun(test, "inavailability with for-in statements")
TestRun(test, "unavailability with for-in statements")
.addError(2, 20, "Asynchronous iteration is only available with for-of loops.")
.test([
"async function f() {",
" for await (var x in []) {}",
"}"
], { esversion: 9 });

TestRun(test, "inavailability with C-style for statements")
TestRun(test, "unavailability with C-style for statements")
.addError(2, 20, "Asynchronous iteration is only available with for-of loops.")
.test([
"async function f() {",
Expand Down

0 comments on commit ca96d2f

Please sign in to comment.