| Index: runtime/vm/debugger.cc
|
| ===================================================================
|
| --- runtime/vm/debugger.cc (revision 31392)
|
| +++ runtime/vm/debugger.cc (working copy)
|
| @@ -601,9 +601,11 @@
|
|
|
|
|
| RawContext* ActivationFrame::GetLocalContextVar(intptr_t slot_index) {
|
| - Context& context = Context::Handle();
|
| - context ^= GetLocalVar(slot_index);
|
| - return context.raw();
|
| + Object& context = Object::Handle(GetLocalVar(slot_index));
|
| + if (context.IsContext()) {
|
| + return Context::Cast(context).raw();
|
| + }
|
| + return Context::null();
|
| }
|
|
|
|
|
|
|