aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ltm.js4
-rw-r--r--tests/tests.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/ltm.js b/tests/ltm.js
index 0543110..a05d2b5 100644
--- a/tests/ltm.js
+++ b/tests/ltm.js
@@ -783,7 +783,7 @@ test('binary __xxx functions in metatable', function (t) {
}, "Second part of the program executed without errors");
t.deepEqual(
- L.stack.slice(L.top - 12, L.top).map(function (e) { return e.value }),
+ L.stack.slice(L.top - 12, L.top).map(e => e.value),
[
"{} + 1",
"{} - 1",
@@ -1300,7 +1300,7 @@ test('__call', function (t) {
}, "Second part of the program executed without errors");
t.deepEqual(
- L.stack.slice(L.top - 3, L.top).map(function (e) { return e.value }),
+ L.stack.slice(L.top - 3, L.top).map(e => e.value),
["hello", "world", "wow"],
"Program output is correct"
);
diff --git a/tests/tests.js b/tests/tests.js
index a9f8730..0963159 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -16,8 +16,8 @@ const toByteCode = function (luaCode) {
fs.writeSync(luaFile.fd, luaCode);
- child_process.execSync(`luac-5.3 -o ${luaFile.name}.bc ${luaFile.name}`);
- child_process.execSync(`luac-5.3 -l ${luaFile.name} > ${luaFile.name}.bc.txt`);
+ child_process.execSync(`luac -o ${luaFile.name}.bc ${luaFile.name}`);
+ child_process.execSync(`luac -l ${luaFile.name} > ${luaFile.name}.bc.txt`);
bclist = fs.readFileSync(`${luaFile.name}.bc.txt`, 'utf8');