Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart

Issue 206193002: Remove cancel and make crash exit with code 253. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
index a847d3efddfdca044a0fca8b5d4487d47e6f1e8a..9c467ba910bccf58f77f6ce7dc42587378c42425 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
@@ -73,8 +73,7 @@ class TypeVariableHandler {
for (TypeVariableType currentTypeVariable in cls.typeVariables) {
List<Constant> createArguments(FunctionElement constructor) {
if (constructor != typeVariableConstructor) {
- compiler.internalErrorOnElement(
- currentTypeVariable.element,
+ compiler.internalError(currentTypeVariable.element,
'Unexpected constructor $constructor');
}
Constant name = backend.constantSystem.createString(
@@ -103,11 +102,8 @@ class TypeVariableHandler {
typeVariableClass.ensureResolved(compiler);
Link constructors = typeVariableClass.constructors;
if (constructors.isEmpty && constructors.tail.isEmpty) {
- compiler.reportInternalError(
- typeVariableClass,
- MessageKind.GENERIC,
- {'text': "Class '$typeVariableClass' should only "
- "have one constructor"});
+ compiler.internalError(typeVariableClass,
+ "Class '$typeVariableClass' should only have one constructor");
}
typeVariableConstructor = typeVariableClass.constructors.head;
backend.enqueueInResolution(typeVariableConstructor,

Powered by Google App Engine
This is Rietveld 408576698