Index: dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
diff --git a/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart b/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
index 50195384d2618eb6fd8b8e40bcaa1186370a1492..5039711dc44c0e14e71ad264ac8f342c6210bab6 100644 |
--- a/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
+++ b/dart/pkg/compiler/lib/src/js_emitter/old_emitter/container_builder.dart |
@@ -363,7 +363,11 @@ class ContainerBuilder extends CodeEmitterHelper { |
member.isAccessor; |
String tearOffName; |
- final bool canBeReflected = backend.isAccessibleByReflection(member); |
+ |
+ final bool canBeReflected = backend.isAccessibleByReflection(member) || |
+ // During incremental compilation, we have to assume that reflection |
+ // *might* get enabled. |
+ compiler.hasIncrementalSupport; |
if (isNotApplyTarget) { |
canTearOff = false; |