From a39f24f204a15cb4587e75b38424952fe444d9d2 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 11 Jan 2018 23:33:34 +1100 Subject: Move fengari specific things to src/fengaricore.js String manipulation functions now get exposed on 'fengari' object itself at top level --- src/lcorolib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lcorolib.js') diff --git a/src/lcorolib.js b/src/lcorolib.js index a72d22b..bcdae8b 100644 --- a/src/lcorolib.js +++ b/src/lcorolib.js @@ -2,10 +2,11 @@ const lua = require('./lua.js'); const lauxlib = require('./lauxlib.js'); +const {to_luastring} = require("./fengaricore.js"); const getco = function(L) { let co = lua.lua_tothread(L, 1); - lauxlib.luaL_argcheck(L, co, 1, lua.to_luastring("thread expected", true)); + lauxlib.luaL_argcheck(L, co, 1, to_luastring("thread expected", true)); return co; }; -- cgit v1.2.3-54-g00ecf