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

Unified Diff: tests/language/deferred_global_lib.dart

Issue 795923003: Dart2js, move deferred global vars to the right output unit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years 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 | « tests/compiler/dart2js/dart2js.status ('k') | tests/language/deferred_global_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/deferred_global_lib.dart
diff --git a/tests/language/deferred_global_lib.dart b/tests/language/deferred_global_lib.dart
index be4a001946758084f8df05bb4b2053a51f2a976e..a8fdca56326f77e60ffcc1f53940d6b179b2c364 100644
--- a/tests/language/deferred_global_lib.dart
+++ b/tests/language/deferred_global_lib.dart
@@ -11,6 +11,10 @@ final finalNonConstGlobal = (() {
}());
var lazyConstGlobal = "lazyConstGlobal";
+// Regression test for bug #21840.
+var const1Global = const {};
+final lazyConstGlobal2 = const1Global;
+
var lazyNonConstGlobal = (() {
sideEffectCounter++;
return "lazyNonConstGlobal";
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | tests/language/deferred_global_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698