8029173: Debugger support doesn't handle ConsString
authorjlaskey
Tue, 26 Nov 2013 11:58:20 -0400
changeset 21992 86342c6f8cfc
parent 21870 3b9162f81b47
child 21993 2960e826c39d
child 22382 2abc7240ef59
8029173: Debugger support doesn't handle ConsString Reviewed-by: lagergren, hannesw, sundar Contributed-by: james.laskey@oracle.com
nashorn/src/jdk/nashorn/internal/runtime/DebuggerSupport.java
--- a/nashorn/src/jdk/nashorn/internal/runtime/DebuggerSupport.java	Fri Nov 22 08:52:45 2013 +0530
+++ b/nashorn/src/jdk/nashorn/internal/runtime/DebuggerSupport.java	Tue Nov 26 11:58:20 2013 -0400
@@ -243,7 +243,7 @@
             return value.toString();
 
         case STRING:
-            return escape((String)value);
+            return escape(value.toString());
 
         case NUMBER:
             return JSType.toString(((Number)value).doubleValue());