Chromium Code Reviews| Index: runtime/observatory/lib/src/service/object.dart |
| diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart |
| index 1d9d4017b9d091a960798008a05082e3196f36fe..ba937e2f21dd14b6e813d4e3ba1bd69e1b5fa836 100644 |
| --- a/runtime/observatory/lib/src/service/object.dart |
| +++ b/runtime/observatory/lib/src/service/object.dart |
| @@ -835,14 +835,15 @@ class Isolate extends ServiceObjectOwner with Coverage { |
| /// Fetches and builds the class hierarchy for this isolate. Returns the |
| /// Object class object. |
| Future<Class> getClassHierarchy() { |
| - return get('classes').then(_loadClasses).then(_buildClassHierarchy); |
| + return invokeRpc('getClassList', {}).then( |
| + _loadClasses).then(_buildClassHierarchy); |
|
turnidge
2015/02/03 17:39:29
Not sure how to best indent this...
blah()
Cutch
2015/02/03 17:54:30
Done.
|
| } |
| /// Given the class list, loads each class. |
| Future<List<Class>> _loadClasses(ServiceMap classList) { |
| assert(classList.type == 'ClassList'); |
| var futureClasses = []; |
| - for (var cls in classList['members']) { |
| + for (var cls in classList['classes']) { |
| // Skip over non-class classes. |
| if (cls is Class) { |
| futureClasses.add(cls.load()); |