aboutsummaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lapi.js b/src/lapi.js
index a7fbc91..aa8cf04 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -527,8 +527,7 @@ const lua_getupvalue = function(L, funcindex, n) {
L.stack[L.top++] = new TValue(val.type, val.value);
- // FIXME: should always be a lua string
- return typeof name === 'string' ? defs.to_luastring(name) : name;
+ return name;
}
return null;
};
@@ -545,8 +544,7 @@ const lua_setupvalue = function(L, funcindex, n) {
val.type = L.stack[L.top].type;
val.value = L.stack[L.top].value;
- // FIXME: should always be a lua string
- return typeof name === 'string' ? defs.to_luastring(name) : name;
+ return name;
}
return null;
};