Chromium Code Reviews| 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; |
| +} |