changeset 683:e0b4483668a7

8029173: Debugger support doesn't handle ConsString Reviewed-by: lagergren, hannesw, sundar Contributed-by: james.laskey@oracle.com
author jlaskey
date Tue, 26 Nov 2013 11:58:20 -0400
parents 73d741231651
children c14fe3f90616 752554d45a07
files src/jdk/nashorn/internal/runtime/DebuggerSupport.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk/nashorn/internal/runtime/DebuggerSupport.java	Fri Nov 22 08:52:45 2013 +0530
+++ b/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());