Avoid deprecated version of ScriptableObject.setAttributes()
This commit is contained in:
parent
e1e09c943c
commit
19975df982
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue