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

Unified Diff: runtime/bin/vmservice/observatory/lib/src/service/object.dart

Issue 786053002: Fix build and compile to JS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « runtime/bin/vmservice/observatory/deployed/web/packages/template_binding/js/observe.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/observatory/lib/src/service/object.dart
===================================================================
--- runtime/bin/vmservice/observatory/lib/src/service/object.dart (revision 42171)
+++ runtime/bin/vmservice/observatory/lib/src/service/object.dart (working copy)
@@ -1463,6 +1463,9 @@
void _update(ObservableMap map, bool mapIsRef) {
name = map['name'];
vmName = (map.containsKey('vmName') ? map['vmName'] : name);
+ var idPrefix = "classes/";
+ assert(id.startsWith(idPrefix));
+ vmCid = int.parse(id.substring(idPrefix.length));
if (mapIsRef) {
return;
@@ -1510,9 +1513,6 @@
superclass._addSubclass(this);
}
error = map['error'];
- var idPrefix = "classes/";
- assert(id.startsWith(idPrefix));
- vmCid = int.parse(id.substring(idPrefix.length));
var allocationStats = map['allocationStats'];
if (allocationStats != null) {
« no previous file with comments | « runtime/bin/vmservice/observatory/deployed/web/packages/template_binding/js/observe.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698