From 84a0982085967895e9bb5e5439c09960840da2d5 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 09:50:40 +1000 Subject: src/lauxlib.js: Fix traceback text --- tests/ldblib.js | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'tests') diff --git a/tests/ldblib.js b/tests/ldblib.js index 83d0743..4569e98 100644 --- a/tests/ldblib.js +++ b/tests/ldblib.js @@ -340,18 +340,18 @@ test('debug.traceback (with a global)', function (t) { t.strictEqual( lua.lua_tojsstring(L, -1), `stack traceback: -\t...[string "traceback-test"]9: in function 'rec' -\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"]7: in function 'rec' -\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"]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"]:9: in function 'rec' +\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"]:7: in function 'rec' +\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"]: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`, "Correct element(s) on the stack" ); @@ -399,18 +399,18 @@ test('debug.traceback (with a upvalue)', function (t) { t.strictEqual( lua.lua_tojsstring(L, -1), `stack traceback: -\t...[string "traceback-test"]10: in upvalue 'rec' -\t...[string "traceback-test"]8: in upvalue 'rec' -\t...[string "traceback-test"]8: in upvalue 'rec' -\t...[string "traceback-test"]8: in upvalue 'rec' -\t...[string "traceback-test"]8: in upvalue 'rec' -\t...[string "traceback-test"]8: in upvalue 'rec' -\t...[string "traceback-test"]8: in upvalue 'rec' -\t...[string "traceback-test"]8: in upvalue 'rec' -\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"]:10: in upvalue 'rec' +\t[string "traceback-test"]:8: in upvalue 'rec' +\t[string "traceback-test"]:8: in upvalue 'rec' +\t[string "traceback-test"]:8: in upvalue 'rec' +\t[string "traceback-test"]:8: in upvalue 'rec' +\t[string "traceback-test"]:8: in upvalue 'rec' +\t[string "traceback-test"]:8: in upvalue 'rec' +\t[string "traceback-test"]:8: in upvalue 'rec' +\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`, "Correct element(s) on the stack" ); -- cgit v1.2.3-70-g09d2