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

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

Issue 175043004: Version 1.2.0-dev.5.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 years, 10 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/compiler/implementation/js_emitter/reflection_data_parser.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart (revision 32895)
+++ sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart (working copy)
@@ -224,7 +224,7 @@
var globalObject = data[3];
var descriptor = data[4];
var isRoot = !!data[5];
- var fields = descriptor && descriptor[""];
+ var fields = descriptor && descriptor["${namer.classDescriptorProperty}"];
var classes = [];
var functions = [];
''';
@@ -233,7 +233,7 @@
function processStatics(descriptor) {
for (var property in descriptor) {
if (!hasOwnProperty.call(descriptor, property)) continue;
- if (property === "") continue;
+ if (property === "${namer.classDescriptorProperty}") continue;
var element = descriptor[property];
var firstChar = property.substring(0, 1);
var previousProperty;
@@ -286,7 +286,8 @@
optionalMethods[prop] = previousProp;
} else {
var elem = element[prop];
- if (prop && elem != null &&''' // Break long line.
+ if (prop !== "${namer.classDescriptorProperty}" &&'''
+ ''' elem != null &&''' // Break long line.
''' elem.constructor === Array &&''' // Break long line.
''' prop !== "<>") {
addStubs(newDesc, elem, prop, false, element, []);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698