summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-08 11:37:03 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-08 11:40:36 +1000
commitef39c3a77c753d16a702f403faf791d0caf9a595 (patch)
tree5017628e84845d42e194101599e865fbec6f0163 /src/lapi.js
parent41ce60e14b313758d36b6fd3ac91eed8db233e87 (diff)
downloadfengari-ef39c3a77c753d16a702f403faf791d0caf9a595.tar.gz
fengari-ef39c3a77c753d16a702f403faf791d0caf9a595.tar.bz2
fengari-ef39c3a77c753d16a702f403faf791d0caf9a595.zip
src/lundump.js: .readString should return a lua string, not a js string
This also reverts commit b1a8a4b0435199982d26de4a183600c155619a5a.
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;
};