Saner handling of property deleting with internal classes
authorLars Knoll <lars.knoll@digia.com>
Tue, 12 Feb 2013 12:14:19 +0000 (13:14 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 12 Feb 2013 15:27:01 +0000 (16:27 +0100)
commit6cd0e478860382d4ab5cf50383a464f0780893b4
treeac9835a5c13581276ec5cd0538cf26c88ada39a0
parent194c582354785f9a62b2e0c947b9b998a8596898
Saner handling of property deleting with internal classes

Build up a new internal class from the empty class with the
deleted member removed. The add a transition for removal from
the current class to the new one.

This avoids bad behavior in pathological cases where someone
would remove a member, then add it again etc.

Change-Id: I9f2138785780bc3b9f529056e27abe51c1055bbe
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/v4/qv4internalclass.cpp