changeset 21869:da99d0cbd413

8028573: Line number nodes were off for while nodes and do while nodes - the line number of a loop node should be treated as the location of the test expression Reviewed-by: attila, hannesw
author lagergren
date Tue, 19 Nov 2013 10:29:32 +0100
parents f3cd4fa7f8b9
children 3b9162f81b47 1db7c8634626
files nashorn/test/script/basic/JDK-8028434.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nashorn/test/script/basic/JDK-8028434.js	Mon Nov 18 16:35:39 2013 +0100
+++ b/nashorn/test/script/basic/JDK-8028434.js	Tue Nov 19 10:29:32 2013 +0100
@@ -38,7 +38,7 @@
     if (st.length != 1) {
 	print("erroneous stacktrace length " + s.length);
     }
-    if (st[0].lineNumber !== 32) {
+    if (st[0].lineNumber !== 33) {
 	print("erroneous stacktrace element, lineNumber=" + st[0].lineNumber + " elem=" + st);
     }
 }
@@ -52,7 +52,7 @@
     if (st.length != 1) {
 	print("erroneous stacktrace length " + s.length);
     }
-    if (st[0].lineNumber !== 48) {
+    if (st[0].lineNumber !== 49) {
 	print("erroneous stacktrace element, lineNumber= " + st[0].lineNumber + " elem=" + st);
     }
 }