From 2de7580fb1109c5342de0088c174eec634594c00 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 2 Dec 2017 02:35:06 +1100 Subject: Export strings from lauxlib in lua string form (rather than as javascript string) --- tests/test-suite/ltests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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)); -- cgit v1.2.3-70-g09d2