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

Unified Diff: sdk/lib/_internal/compiler/implementation/closure.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/closure.dart
diff --git a/sdk/lib/_internal/compiler/implementation/closure.dart b/sdk/lib/_internal/compiler/implementation/closure.dart
index 76de97ae4fb7d96f2a88f00cbb33633b3f13be4f..7b1f02d7ec3417e3bcb7904fc9c57577d0a84177 100644
--- a/sdk/lib/_internal/compiler/implementation/closure.dart
+++ b/sdk/lib/_internal/compiler/implementation/closure.dart
@@ -67,7 +67,7 @@ class ClosureTask extends CompilerTask {
return measure(() {
ClosureClassMap nestedClosureData = closureMappingCache[node];
if (nestedClosureData == null) {
- compiler.internalError("No closure cache", node: node);
+ compiler.internalError(node, "No closure cache.");
}
return nestedClosureData;
});
@@ -799,7 +799,7 @@ class ClosureTranslator extends Visitor {
for (Element freeElement in freeVariables) {
if (capturedVariableMapping[freeElement] != null &&
capturedVariableMapping[freeElement] != freeElement) {
- compiler.internalError('In closure analyzer', node: node);
+ compiler.internalError(node, 'In closure analyzer.');
}
capturedVariableMapping[freeElement] = freeElement;
useLocal(freeElement);

Powered by Google App Engine
This is Rietveld 408576698