| Index: pkg/compiler/lib/src/resolution/variables.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/variables.dart b/pkg/compiler/lib/src/resolution/variables.dart
|
| index fa7dd756a58c93d18ff5d919fef2719bcf1436d2..d6490e0bc99b6329ec69f8f082681ad7bcbf6935 100644
|
| --- a/pkg/compiler/lib/src/resolution/variables.dart
|
| +++ b/pkg/compiler/lib/src/resolution/variables.dart
|
| @@ -42,8 +42,10 @@ class VariableDefinitionsVisitor extends CommonResolverVisitor<Identifier> {
|
| }
|
|
|
| Identifier visitIdentifier(Identifier node) {
|
| - // The variable is initialized to null.
|
| - registry.registerFeature(Feature.LOCAL_WITHOUT_INITIALIZER);
|
| + if (!resolver.inCatchParameters) {
|
| + // The variable is initialized to null.
|
| + registry.registerFeature(Feature.LOCAL_WITHOUT_INITIALIZER);
|
| + }
|
| if (definitions.modifiers.isConst) {
|
| if (resolver.inLoopVariable) {
|
| reporter.reportErrorMessage(node, MessageKind.CONST_LOOP_VARIABLE);
|
|
|