mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
parent and prototype fields are made privatenot to allow to mess with them from subclasses. Althoygh setter and getter can be used still to do that, at least some sanity checks can be added there.
This commit is contained in:
parent
2851be6c6c
commit
f78d4de11b
@ -1825,12 +1825,12 @@ public abstract class ScriptableObject implements Scriptable, Serializable,
|
||||
/**
|
||||
* The prototype of this object.
|
||||
*/
|
||||
protected Scriptable prototype;
|
||||
private Scriptable prototype;
|
||||
|
||||
/**
|
||||
* The parent scope of this object.
|
||||
*/
|
||||
protected Scriptable parent;
|
||||
private Scriptable parent;
|
||||
|
||||
private static final Object HAS_STATIC_ACCESSORS = Void.TYPE;
|
||||
private static final Slot REMOVED = new Slot();
|
||||
|
Loading…
x
Reference in New Issue
Block a user