Avoid deprecated version of ScriptableObject.setAttributes()

This commit is contained in:
hns 2003-12-18 09:51:29 +00:00
parent e1e09c943c
commit 19975df982

View file

@ -236,9 +236,9 @@ public final class RhinoCore {
// old generation and wasn't renewed -- delete it.
// System.err.println("DELETING OLD FUNC: "+key);
try {
((ScriptableObject) op).setAttributes(key, op, 0);
((ScriptableObject) op).setAttributes(key, 0);
op.delete(key);
} catch (PropertyException px) {
} catch (Exception px) {
System.err.println("Error unsetting property "+key+" on "+prototype);
}
} else {