aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 6b853ae..a336220 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -486,7 +486,7 @@ const lua_newuserdata = function(L, size) {
const aux_upvalue = function(L, fi, n) {
switch(fi.ttype()) {
- case CT.LUAT_TCCL: { /* C closure */
+ case CT.LUA_TCCL: { /* C closure */
let f = fi.value;
if (!(1 <= n && n <= f.nupvalues)) return null;
return {