From 70b3069cb94978c1ef530095820b5a9b7dc7962a Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 7 Dec 2004 12:52:21 +0000 Subject: [PATCH] Always clean up old properties in prototypes regardless if they are functions or not. --- src/helma/scripting/rhino/RhinoCore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/scripting/rhino/RhinoCore.java b/src/helma/scripting/rhino/RhinoCore.java index 4d405e99..a012b76e 100644 --- a/src/helma/scripting/rhino/RhinoCore.java +++ b/src/helma/scripting/rhino/RhinoCore.java @@ -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);