Chromium Code Reviews| Index: lib/compiler/implementation/world.dart |
| diff --git a/lib/compiler/implementation/world.dart b/lib/compiler/implementation/world.dart |
| index 0e6410a37301324a3abb98dbcf030834bae144e8..4ff3eb388806e7dc0014b3cbaced68b2a823bdd8 100644 |
| --- a/lib/compiler/implementation/world.dart |
| +++ b/lib/compiler/implementation/world.dart |
| @@ -72,7 +72,9 @@ class World { |
| } |
| } |
| - bool needsRti(ClassElement cls) => classesNeedingRti.contains(cls); |
| + bool needsRti(ClassElement cls) { |
| + return classesNeedingRti.contains(cls) || compiler.enabledRuntimeType; |
|
ngeoffray
2012/09/17 15:31:14
Ouch. Is it there that you should also check which
karlklose
2012/09/19 06:40:45
No, I don't think we need to check that here. Curr
|
| + } |
| void registerRtiDependency(Element element, Element dependency) { |
| // We're not dealing with typedef for now. |