Index: pkg/kernel/lib/target/vm.dart |
diff --git a/pkg/kernel/lib/target/vm.dart b/pkg/kernel/lib/target/vm.dart |
index ed225449dd95610b8939b2bdcce16e0e4366092d..72c71658869437fed0e08320fc173a63dafe8926 100644 |
--- a/pkg/kernel/lib/target/vm.dart |
+++ b/pkg/kernel/lib/target/vm.dart |
@@ -83,7 +83,7 @@ class VmTarget extends Target { |
setup_builtin_library.transformProgram(program); |
if (strongMode) { |
- new Erasure().transform(program); |
+ performErasure(program); |
} |
new SanitizeForVM().transform(program); |
@@ -99,4 +99,8 @@ class VmTarget extends Target { |
.transform(program); |
_hierarchy = null; // Hierarchy must be recomputed. |
} |
+ |
+ void performErasure(Program program) { |
+ new Erasure().transform(program); |
+ } |
} |