compiler/PPCContext.st
changeset 414 0eaf09920532
parent 392 9b297f0d949c
child 419 5c502ab8e87d
--- a/compiler/PPCContext.st	Wed Nov 05 21:40:01 2014 +0000
+++ b/compiler/PPCContext.st	Wed Nov 05 23:05:19 2014 +0000
@@ -268,8 +268,16 @@
 !
 
 restoreProperties: aPPContextMemento
+	properties ifNil: [ ^ self ].
+	
+	properties keysDo: [ :key |
+		(aPPContextMemento hasProperty: key)
+			ifTrue: [ properties at: key put: (aPPContextMemento propertyAt: key) ]
+			ifFalse: [ properties removeKey: key  ]. 
+	].
+
 	aPPContextMemento keysAndValuesDo: [ :key :value |
-		self propertyAt: key put: value
-	].
+		properties at: key put: value
+	]
 ! !