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 --- tests/manual-tests/debug-cli.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/manual-tests') diff --git a/tests/manual-tests/debug-cli.js b/tests/manual-tests/debug-cli.js index 3feb981..dc49a0e 100755 --- a/tests/manual-tests/debug-cli.js +++ b/tests/manual-tests/debug-cli.js @@ -4,6 +4,7 @@ const lua = require('../../src/lua.js'); const lauxlib = require('../../src/lauxlib.js'); const lualib = require('../../src/lualib.js'); +const {to_luastring} = require("../../src/fengaricore.js"); let luaCode = ` a = "debug me" @@ -14,6 +15,6 @@ L = lauxlib.luaL_newstate(); lualib.luaL_openlibs(L); -lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode)); +lauxlib.luaL_loadstring(L, to_luastring(luaCode)); lua.lua_call(L, 0, 0); -- cgit v1.2.3-70-g09d2