Loosen `AstValidator` to allow FOR_AWAIT_OF without ASYNC_FUNCTION listed as a feature of the parent script.
Async functions aren't required for for-await-of loops. This was causing errors when test used for-await-of without also declaring an async function.
@@ -1209,7 +1209,6 @@ public final class AstValidator implements CompilerPass {
private void validateForAwaitOf(Node n) {
validateFeature(Feature.FOR_AWAIT_OF, n);
- validateFeature(Feature.ASYNC_FUNCTIONS, n);
validateNodeType(Token.FOR_AWAIT_OF, n);
validateChildCount(n);
validateVarOrAssignmentTarget(n.getFirstChild());
