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

Unified Diff: lib/compiler/implementation/lib/js_helper.dart

Issue 10855174: Lazy implementation of final variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase and merge. Created 8 years, 3 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
« no previous file with comments | « lib/compiler/implementation/lib/errors.dart ('k') | lib/compiler/implementation/namer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
+}
« no previous file with comments | « lib/compiler/implementation/lib/errors.dart ('k') | lib/compiler/implementation/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698