Fix scoping rules for dictionaries.

Refs #6183
This commit is contained in:
Gunnar Beutner 2014-05-10 12:43:16 +02:00
parent 6d7e028f92
commit 7df7ec94d2
1 changed files with 3 additions and 3 deletions

View File

@ -308,9 +308,9 @@ Value AExpression::OpDict(const AExpression *expr, const Dictionary::Ptr& locals
}
}
result->Remove("__parent");
return result;
Dictionary::Ptr xresult = result->ShallowClone();
xresult->Remove("__parent");
return xresult;
}
Value AExpression::OpSet(const AExpression *expr, const Dictionary::Ptr& locals)