| Index: lib/compiler/implementation/lib/js_helper.dart
|
| diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
|
| index afb3acb83be8268496931bacc242db080cb1f5d7..39f277aba8053a1f75637522466aba4c337e1fd9 100644
|
| --- a/lib/compiler/implementation/lib/js_helper.dart
|
| +++ b/lib/compiler/implementation/lib/js_helper.dart
|
| @@ -1194,3 +1194,11 @@ interface JavaScriptIndexingBehavior {
|
| void throwNoSuchMethod(obj, name, arguments) {
|
| throw new NoSuchMethodException(obj, name, arguments);
|
| }
|
| +
|
| +/**
|
| + * Called by generated code when a static field's initializer references the
|
| + * field that is currently being initialized.
|
| + */
|
| +void throwCyclicInit(String staticName) {
|
| + throw new RuntimeError("Cyclic initialization for static $staticName");
|
| +}
|
|
|