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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart

Issue 661783002: dart2js: Add support for static fields to new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 2 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 | « sdk/lib/_internal/compiler/implementation/js_emitter/program_builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart
index a0a078dac9352319bfb1e1e5b0027bb4d55e4c4f..0c036b3e3179a0b5b7b179753682de6c19fda0bb 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart
@@ -22,7 +22,10 @@ class Fragment {
final OutputUnit outputUnit;
Fragment.main(this.outputUnit) : name = "";
- Fragment.deferred(this.outputUnit, this.name);
+
+ Fragment.deferred(this.outputUnit, this.name) {
+ assert(name != "");
+ }
void add(LibraryElement library, Element element) {
if (_lastLibrary != library) {
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_emitter/program_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698