summaryrefslogtreecommitdiff
path: root/tests/test-suite/ltests.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-28 14:11:48 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-28 14:11:48 +0200
commit4e2f90985cbffa5b3e6e7840543d684a6dd18aed (patch)
tree9138e83943e0df1fd73d81cda06fe360c97486ad /tests/test-suite/ltests.js
parentb667e7b8ec3f63a05172a40491c4f4ca9ec9cad0 (diff)
downloadfengari-4e2f90985cbffa5b3e6e7840543d684a6dd18aed.tar.gz
fengari-4e2f90985cbffa5b3e6e7840543d684a6dd18aed.tar.bz2
fengari-4e2f90985cbffa5b3e6e7840543d684a6dd18aed.zip
ltests.js: fixed upvalue, removed collectgarbage calls
Diffstat (limited to 'tests/test-suite/ltests.js')
-rw-r--r--tests/test-suite/ltests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-suite/ltests.js b/tests/test-suite/ltests.js
index 13b4774..4f874d5 100644
--- a/tests/test-suite/ltests.js
+++ b/tests/test-suite/ltests.js
@@ -501,8 +501,8 @@ const testJS = function(L) {
};
const upvalue = function(L) {
- let n = lauxlib.checkinteger(L, 2);
- lauxlib.checktype(L, 1, lua.LUA_TFUNCTION);
+ let n = lauxlib.luaL_checkinteger(L, 2);
+ lauxlib.luaL_checktype(L, 1, lua.LUA_TFUNCTION);
if (lua.lua_isnone(L, 3)) {
let name = lua.lua_getupvalue(L, 1, n);
if (name === null) return 0;