src/jdk/nashorn/internal/runtime/ScriptObject.java
Print this page
@@ -1106,11 +1106,12 @@
}
}
}
/**
- * return a List of own keys associated with the object.
+ * 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,11 +1208,11 @@
* 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
+ * @return true if 'instance' is an instance of this object
*/
public boolean isInstance(final ScriptObject instance) {
return false;
}
@@ -1380,11 +1381,11 @@
}
}
/**
* Check whether this ScriptObject is frozen
- * @return true if frozed
+ * @return true if frozen
*/
public boolean isFrozen() {
return getMap().isFrozen();
}