@@ -5498,7 +5498,7 @@ class CodeGenerator extends Object
54985498 variable = forParts.loopVariable.identifier;
54995499 init = js.call ('let # = #.current' , [_emitVariableDef (variable), iter]);
55005500 } else {
5501- throw new StateError ('Unrecognized for loop parts' );
5501+ throw StateError ('Unrecognized for loop parts' );
55025502 }
55035503 return js.statement (
55045504 '{'
@@ -6516,7 +6516,7 @@ class CodeGenerator extends Object
65166516 } else if (forParts is ForPartsWithDeclarations ) {
65176517 init = visitVariableDeclarationList (forParts.variables);
65186518 } else {
6519- throw new StateError ('Unrecognized for loop parts' );
6519+ throw StateError ('Unrecognized for loop parts' );
65206520 }
65216521 js_ast.Expression update;
65226522 if (forParts.updaters != null && forParts.updaters.isNotEmpty) {
@@ -6548,7 +6548,7 @@ class CodeGenerator extends Object
65486548 ]);
65496549 }
65506550 } else {
6551- throw new StateError ('Unrecognized for loop parts' );
6551+ throw StateError ('Unrecognized for loop parts' );
65526552 }
65536553 return js_ast.ForOf (jsLeftExpression, jsIterable, jsBody);
65546554 }
@@ -6618,7 +6618,7 @@ class CodeGenerator extends Object
66186618 } else if (forParts is ForEachPartsWithDeclaration ) {
66196619 variable = forParts.loopVariable.identifier;
66206620 } else {
6621- throw new StateError ('Unrecognized for loop parts' );
6621+ throw StateError ('Unrecognized for loop parts' );
66226622 }
66236623 var castType = getImplicitCast (variable);
66246624 if (castType != null ) {
0 commit comments