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

Unified Diff: sdk/lib/_internal/lib/foreign_helper.dart

Issue 23533040: Check for non-final field in the face of const constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/_internal/lib/foreign_helper.dart
diff --git a/sdk/lib/_internal/lib/foreign_helper.dart b/sdk/lib/_internal/lib/foreign_helper.dart
index a45d9bfa000d9172dcf830894f16bb12d240feba..165a0a480659e1a7cad96497f7f449d4eeef15f5 100644
--- a/sdk/lib/_internal/lib/foreign_helper.dart
+++ b/sdk/lib/_internal/lib/foreign_helper.dart
@@ -266,6 +266,6 @@ void JS_EFFECT(Function code) { code(null); }
* $.JS_CONST_1 = typeof window != "undefined";
*/
class JS_CONST {
- String code;
+ final String code;
const JS_CONST(this.code);
}

Powered by Google App Engine
This is Rietveld 408576698