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
authorlagergren
Tue, 19 Nov 2013 10:29:32 +0100
changeset 21869 da99d0cbd413
parent 21868 f3cd4fa7f8b9
child 21870 3b9162f81b47
child 22366 1db7c8634626
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
nashorn/test/script/basic/JDK-8028434.js
--- 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);
     }
 }