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
--- 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);
}
}