summaryrefslogtreecommitdiff
path: root/src/loadlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-29 00:48:15 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-29 02:32:41 +1100
commitc93673f0af0ebdc5165cf0acc340f65b6c6fa786 (patch)
tree9da0e536d0cb10e25fc4fe8df4705f87326136af /src/loadlib.js
parentf9375fcb71171d7b18190fa59ec402f7f68e26dd (diff)
downloadfengari-c93673f0af0ebdc5165cf0acc340f65b6c6fa786.tar.gz
fengari-c93673f0af0ebdc5165cf0acc340f65b6c6fa786.tar.bz2
fengari-c93673f0af0ebdc5165cf0acc340f65b6c6fa786.zip
src/: Pass js string to luaL_opt(l)string
Diffstat (limited to 'src/loadlib.js')
-rw-r--r--src/loadlib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loadlib.js b/src/loadlib.js
index 0be1742..53d764b 100644
--- a/src/loadlib.js
+++ b/src/loadlib.js
@@ -294,8 +294,8 @@ const ll_searchpath = function(L) {
L,
lauxlib.luaL_checkstring(L, 1),
lauxlib.luaL_checkstring(L, 2),
- lauxlib.luaL_optstring(L, 3, lua.to_luastring(".")),
- lauxlib.luaL_optstring(L, 4, lua.to_luastring(lua.LUA_DIRSEP))
+ lauxlib.luaL_optstring(L, 3, "."),
+ lauxlib.luaL_optstring(L, 4, lua.LUA_DIRSEP)
);
if (f !== null) return 1;
else { /* error message is on top of the stack */