Always clean up old properties in prototypes regardless if they are functions or not.

This commit is contained in:
hns 2004-12-07 12:52:21 +00:00
parent d1b5b820ad
commit 70b3069cb9

View file

@ -241,7 +241,7 @@ public final class RhinoCore {
continue;
}
Object prop = op.get(key, op);
if (oldFunctions.contains(prop) && prop instanceof NativeFunction) {
if (oldFunctions.contains(prop)) {
// if this is a function compiled from script, it's from the
// old generation and wasn't renewed -- delete it.
// System.err.println("DELETING OLD FUNC: "+key);