summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-02 02:35:06 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-02 02:35:06 +1100
commit2de7580fb1109c5342de0088c174eec634594c00 (patch)
tree0f40ab7d3b28e1b7a41badbcf7ae4b564b812300 /tests
parentc8d6c4323c62c38a4fad40642cd9db166caa910a (diff)
downloadfengari-2de7580fb1109c5342de0088c174eec634594c00.tar.gz
fengari-2de7580fb1109c5342de0088c174eec634594c00.tar.bz2
fengari-2de7580fb1109c5342de0088c174eec634594c00.zip
Export strings from lauxlib in lua string form (rather than as javascript string)
Diffstat (limited to 'tests')
-rw-r--r--tests/test-suite/ltests.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-suite/ltests.js b/tests/test-suite/ltests.js
index 56a673c..2f48287 100644
--- a/tests/test-suite/ltests.js
+++ b/tests/test-suite/ltests.js
@@ -598,7 +598,7 @@ const loadlib = function(L) {
lauxlib.luaL_requiref(L1, lua.to_luastring("package", true), null, 1); /* seg. fault if it reloads */
/* ...but should return the same module */
assert(lua.lua_compare(L1, -1, -2, lua.LUA_OPEQ));
- lauxlib.luaL_getsubtable(L1, lua.LUA_REGISTRYINDEX, lua.to_luastring(lauxlib.LUA_PRELOAD_TABLE, true));
+ lauxlib.luaL_getsubtable(L1, lua.LUA_REGISTRYINDEX, lauxlib.LUA_PRELOAD_TABLE);
for (let name in libs) {
lua.lua_pushcfunction(L1, libs[name]);
lua.lua_setfield(L1, -2, lua.to_luastring(name, true));