aboutsummaryrefslogtreecommitdiff
path: root/src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java')
-rw-r--r--src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java b/src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java
index 19cc8b6f..39d0b3ec 100644
--- a/src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java
+++ b/src/jdk/nashorn/internal/objects/GenericPropertyDescriptor.java
@@ -176,6 +176,11 @@ public final class GenericPropertyDescriptor extends ScriptObject implements Pro
}
@Override
+ public String toString() {
+ return '[' + getClass().getSimpleName() + " {configurable=" + configurable + " enumerable=" + enumerable + "}]";
+ }
+
+ @Override
public int hashCode() {
int hash = 7;
hash = 97 * hash + Objects.hashCode(this.configurable);