summaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-12 15:03:02 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-13 15:03:54 +1100
commite438f10592077f8b5432f67ef72a8f1bfbbcdc49 (patch)
tree7755e33334b592e78bc76a20a47fb5e504fe7c74 /src/lapi.js
parentc5b39b9d292c1a2178aa41c6a95367a81614eb61 (diff)
downloadfengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.tar.gz
fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.tar.bz2
fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.zip
src/: Use to_luastring more often instead of manually creating arrays
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 3726af0..9e2f0a3 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -230,7 +230,7 @@ const lua_pushinteger = function(L, n) {
assert(L.top <= L.ci.top, "stack overflow");
};
-const emptystring = [];
+const emptystring = defs.to_luastring("");
const lua_pushlstring = function(L, s, len) {
assert(typeof len === "number");