| Index: runtime/vm/debugger.cc
|
| diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
|
| index b30a33142820226ed76e0c6c3a60d554a9c90760..13a91751bc024dd5b23d0a3fb51365635bea5465 100644
|
| --- a/runtime/vm/debugger.cc
|
| +++ b/runtime/vm/debugger.cc
|
| @@ -1071,12 +1071,14 @@ RawObject* ActivationFrame::Evaluate(const String& expr) {
|
| Array::Handle(Array::MakeArray(param_values)));
|
| } else {
|
| const Object& receiver = Object::Handle(GetReceiver());
|
| + const Class& method_cls = Class::Handle(function().origin());
|
| ASSERT(receiver.IsInstance() || receiver.IsNull());
|
| if (!(receiver.IsInstance() || receiver.IsNull())) {
|
| return Object::null();
|
| }
|
| const Instance& inst = Instance::Cast(receiver);
|
| - return inst.Evaluate(expr,
|
| + return inst.Evaluate(method_cls,
|
| + expr,
|
| Array::Handle(Array::MakeArray(param_names)),
|
| Array::Handle(Array::MakeArray(param_values)));
|
| }
|
|
|