Index: pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart |
index f632f90e943e1c945fdf4a9cd2f365bdd42e3f3f..0d9527877e28c70d9762771fb8edda9c0bf21847 100644 |
--- a/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart |
+++ b/pkg/compiler/lib/src/js_emitter/parameter_stub_generator.dart |
@@ -15,6 +15,7 @@ class ParameterStubGenerator { |
Emitter get emitter => backend.emitter.emitter; |
CodeEmitterTask get emitterTask => backend.emitter; |
+ DiagnosticReporter get reporter => compiler.reporter; |
bool needsSuperGetter(FunctionElement element) => |
compiler.codegenWorld.methodsNeedingSuperGetter.contains(element); |
@@ -190,10 +191,10 @@ class ParameterStubGenerator { |
if (member.enclosingElement.isClosure) { |
ClosureClassElement cls = member.enclosingElement; |
if (cls.supertype.element == backend.boundClosureClass) { |
- compiler.internalError(cls.methodElement, 'Bound closure1.'); |
+ reporter.internalError(cls.methodElement, 'Bound closure1.'); |
} |
if (cls.methodElement.isInstanceMember) { |
- compiler.internalError(cls.methodElement, 'Bound closure2.'); |
+ reporter.internalError(cls.methodElement, 'Bound closure2.'); |
} |
} |