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

Unified Diff: frog/leg/lib/js_helper.dart

Issue 9632018: Switch-implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Finished implementation Created 8 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: frog/leg/lib/js_helper.dart
diff --git a/frog/leg/lib/js_helper.dart b/frog/leg/lib/js_helper.dart
index 835ff0a6e7403fc81e0beb4662e10428eb36f3c0..88ba66e2a5bde504464454a37b0dcdd78b7f5f37 100644
--- a/frog/leg/lib/js_helper.dart
+++ b/frog/leg/lib/js_helper.dart
@@ -1368,3 +1368,13 @@ class StackTrace {
StackTrace(this.stack);
String toString() => stack != null ? stack : '';
}
+
+
+FallThroughError fallThroughErrorInstance = null;
+getFallThroughError() {
ahe 2012/03/09 13:58:32 Add documentation comment that explain who calls t
Lasse Reichstein Nielsen 2012/03/12 13:05:23 Done.
+ // TODO(lrn): Redo when we support "const FallThroughError()".
+ if (fallThroughErrorInstance === null) {
+ fallThroughErrorInstance = new FallThroughError();
+ }
+ return fallThroughErrorInstance;
+}

Powered by Google App Engine
This is Rietveld 408576698