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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 16147005: Version 0.5.14.3 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 6 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 | « no previous file | tests/lib/mirrors/metadata_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (revision 23686)
+++ sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart (working copy)
@@ -1495,10 +1495,12 @@
separator = ',';
if (compiler.mirrorsEnabled) {
var metadata = buildMetadataFunction(member);
- fieldMetadata.add(metadata);
if (metadata != null) {
hasMetadata = true;
+ } else {
+ metadata = new jsAst.LiteralNull();
}
+ fieldMetadata.add(metadata);
}
if (!needsAccessor) {
// Emit field for constructor generation.
« no previous file with comments | « no previous file | tests/lib/mirrors/metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698