aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlagergren <none@none>2013-11-19 10:29:32 +0100
committerlagergren <none@none>2013-11-19 10:29:32 +0100
commit1423afcf0b8e0e087be21667a7438c6adb3b8608 (patch)
tree2fb1cd2f6f7942ffbac556927e85e0aa75193038 /test
parent9dedc388106e53f4dc39989369bf496ded63d378 (diff)
downloadnashorn-1423afcf0b8e0e087be21667a7438c6adb3b8608.tar.gz
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
Diffstat (limited to 'test')
-rw-r--r--test/script/basic/JDK-8028434.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/script/basic/JDK-8028434.js b/test/script/basic/JDK-8028434.js
index 81f9e02a..c3374151 100644
--- a/test/script/basic/JDK-8028434.js
+++ b/test/script/basic/JDK-8028434.js
@@ -38,7 +38,7 @@ try {
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 @@ try {
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);
}
}