summaryrefslogtreecommitdiff
path: root/tests/ldblib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 11:14:01 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 13:00:20 +1000
commitb3e2cedff9b47285709d83d9dc53dde5f2ba19e5 (patch)
tree80cbb62b5978fed1ae8fcefda1eed4ef3e2ce0c3 /tests/ldblib.js
parentfb787627c39366de507ee713b9042f33a33395b1 (diff)
downloadfengari-b3e2cedff9b47285709d83d9dc53dde5f2ba19e5.tar.gz
fengari-b3e2cedff9b47285709d83d9dc53dde5f2ba19e5.tar.bz2
fengari-b3e2cedff9b47285709d83d9dc53dde5f2ba19e5.zip
src/ldebug.js: Fix off by one error when calculating line number
Diffstat (limited to 'tests/ldblib.js')
-rw-r--r--tests/ldblib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ldblib.js b/tests/ldblib.js
index 4569e98..1adfef5 100644
--- a/tests/ldblib.js
+++ b/tests/ldblib.js
@@ -351,7 +351,7 @@ test('debug.traceback (with a global)', function (t) {
\t[string "traceback-test"]:7: in function 'rec'
\t[string "traceback-test"]:7: in function 'rec'
\t[string "traceback-test"]:7: in function 'rec'
-\t[string "traceback-test"]:15: in main chunk`,
+\t[string "traceback-test"]:13: in main chunk`,
"Correct element(s) on the stack"
);
@@ -410,7 +410,7 @@ test('debug.traceback (with a upvalue)', function (t) {
\t[string "traceback-test"]:8: in upvalue 'rec'
\t[string "traceback-test"]:8: in upvalue 'rec'
\t[string "traceback-test"]:8: in local 'rec'
-\t[string "traceback-test"]:16: in main chunk`,
+\t[string "traceback-test"]:14: in main chunk`,
"Correct element(s) on the stack"
);