src/jdk/nashorn/internal/runtime/ScriptObject.java
Print this page
*** 1106,1116 ****
}
}
}
/**
! * return a List of own keys associated with the object.
* @param all True if to include non-enumerable keys.
* @return Array of keys.
*/
public String[] getOwnKeys(final boolean all) {
final List<Object> keys = new ArrayList<>();
--- 1106,1117 ----
}
}
}
/**
! * return an array of own property keys associated with the object.
! *
* @param all True if to include non-enumerable keys.
* @return Array of keys.
*/
public String[] getOwnKeys(final boolean all) {
final List<Object> keys = new ArrayList<>();
*** 1207,1217 ****
* Checking whether a script object is an instance of another. Used
* in {@link ScriptFunction} for hasInstance implementation, walks
* the proto chain
*
* @param instance instace to check
! * @return true if instance of instance
*/
public boolean isInstance(final ScriptObject instance) {
return false;
}
--- 1208,1218 ----
* Checking whether a script object is an instance of another. Used
* in {@link ScriptFunction} for hasInstance implementation, walks
* the proto chain
*
* @param instance instace to check
! * @return true if 'instance' is an instance of this object
*/
public boolean isInstance(final ScriptObject instance) {
return false;
}
*** 1380,1390 ****
}
}
/**
* Check whether this ScriptObject is frozen
! * @return true if frozed
*/
public boolean isFrozen() {
return getMap().isFrozen();
}
--- 1381,1391 ----
}
}
/**
* Check whether this ScriptObject is frozen
! * @return true if frozen
*/
public boolean isFrozen() {
return getMap().isFrozen();
}