Always clean up old properties in prototypes regardless if they are functions or not.
This commit is contained in:
parent
d1b5b820ad
commit
70b3069cb9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue