aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-03 10:40:03 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-03 10:40:23 +1000
commit50820e54d065bffbb504e6b20b6c27802e102c25 (patch)
tree0bf23a57dbec7a9924225ea4fefa64d2a91eeb19
parentd3f25451a6f2f4c07c3e47d9a92a5917ca8b1e10 (diff)
downloadfengari-50820e54d065bffbb504e6b20b6c27802e102c25.tar.gz
fengari-50820e54d065bffbb504e6b20b6c27802e102c25.tar.bz2
fengari-50820e54d065bffbb504e6b20b6c27802e102c25.zip
src/lapi.js: Fix typo in aux_upvalue
-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 {