| Index: runtime/vm/dart_api_impl.cc
|
| ===================================================================
|
| --- runtime/vm/dart_api_impl.cc (revision 1825)
|
| +++ runtime/vm/dart_api_impl.cc (working copy)
|
| @@ -757,7 +757,7 @@
|
| return Api::Error(msg);
|
| }
|
| const Type& type = Type::Handle(Type::NewNonParameterizedType(cls));
|
| - *value = instance.Is(type);
|
| + *value = instance.IsInstanceOf(type, TypeArguments::Handle());
|
| return Api::Success();
|
| }
|
|
|
| @@ -1129,7 +1129,9 @@
|
| Instance& instance = Instance::Handle();
|
| instance ^= obj.raw();
|
| const Type& type = Type::Handle(isolate->object_store()->list_interface());
|
| - return instance.Is(type) ? instance.raw() : Instance::null();
|
| + if (instance.IsInstanceOf(type, TypeArguments::Handle())) {
|
| + return instance.raw();
|
| + }
|
| }
|
| return Instance::null();
|
| }
|
|
|