Index: pkg/compiler/lib/src/common/codegen.dart |
diff --git a/pkg/compiler/lib/src/common/codegen.dart b/pkg/compiler/lib/src/common/codegen.dart |
index 66ff8cca9f2e61adb382b66a28c1b20a27514cb6..9a95982440399d83b3ef8a61dd77258b042e7f4a 100644 |
--- a/pkg/compiler/lib/src/common/codegen.dart |
+++ b/pkg/compiler/lib/src/common/codegen.dart |
@@ -57,6 +57,11 @@ class CodegenRegistry extends Registry { |
CodegenEnqueuer get world => compiler.enqueuer.codegen; |
JavaScriptBackend get backend => compiler.backend; |
+ void registerAssert(bool hasMessage) { |
+ // Codegen does not register asserts. They have been lowered to calls. |
+ assert(false); |
+ } |
+ |
void registerDependency(Element element) { |
treeElements.registerDependency(element); |
} |