Chromium Code Reviews| Index: runtime/vm/dart_api_impl.cc |
| =================================================================== |
| --- runtime/vm/dart_api_impl.cc (revision 24887) |
| +++ runtime/vm/dart_api_impl.cc (working copy) |
| @@ -55,10 +55,11 @@ |
| static RawInstance* GetListInstance(Isolate* isolate, const Object& obj) { |
| if (obj.IsInstance()) { |
| + const Library& core_lib = Library::Handle(Library::CoreLibrary()); |
| + const Class& list_class = |
| + Class::Handle(core_lib.LookupClass(Symbols::List())); |
|
siva
2013/07/11 00:21:58
ASSERT(!list_class.IsNull());
srdjan
2013/07/11 17:05:44
Done.
|
| const Instance& instance = Instance::Cast(obj); |
| const Class& obj_class = Class::Handle(isolate, obj.clazz()); |
| - const Class& list_class = |
| - Class::Handle(isolate, isolate->object_store()->list_class()); |
| Error& malformed_type_error = Error::Handle(isolate); |
| if (obj_class.IsSubtypeOf(TypeArguments::Handle(isolate), |
| list_class, |