| Index: runtime/vm/service.cc
|
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
|
| index 0caeb9c872e8dc3efeebf044a3ed0c1de6aff079..62048e0fd3b5db95a5b9415dcf05e37de591e981 100644
|
| --- a/runtime/vm/service.cc
|
| +++ b/runtime/vm/service.cc
|
| @@ -2150,8 +2150,10 @@ static bool Evaluate(Thread* thread, JSONStream* js) {
|
| // We don't use Instance::Cast here because it doesn't allow null.
|
| Instance& instance = Instance::Handle(zone);
|
| instance ^= obj.raw();
|
| + const Class& receiver_cls = Class::Handle(zone, instance.clazz());
|
| const Object& result =
|
| - Object::Handle(zone, instance.Evaluate(expr_str,
|
| + Object::Handle(zone, instance.Evaluate(receiver_cls,
|
| + expr_str,
|
| Array::empty_array(),
|
| Array::empty_array()));
|
| result.PrintJSON(js, true);
|
|
|