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

Unified Diff: frog/leg/leg.dart

Issue 9086010: closure calls (just the invocation part). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 12 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: frog/leg/leg.dart
diff --git a/frog/leg/leg.dart b/frog/leg/leg.dart
index 1a18770bcf452e587431ec7b49c3b7dd425e70be..8656fccb9aa664fc8e5ecbbf2bd5ebf5bdf699b3 100644
--- a/frog/leg/leg.dart
+++ b/frog/leg/leg.dart
@@ -25,6 +25,6 @@
final bool GENERATE_SSA_TRACE = false;
-void unreachable() {
- throw const Exception("Internal Error (Leg): UNREACHABLE");
+void unreachable([message = "UNREACHABLE"]) {
+ throw new Exception("Internal Error (Leg): $message");
}

Powered by Google App Engine
This is Rietveld 408576698