summaryrefslogtreecommitdiff
path: root/tests/debug-cli.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-11 10:54:49 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-11 11:07:40 +0200
commit40cb52853ce7a0715761504940b07d77bacf5ec4 (patch)
tree7f52b9a4de3b1da07b6c1c9bae1acc7bafcb4f81 /tests/debug-cli.js
parent4d374d77766b6f621f2194a9546521295aa528af (diff)
downloadfengari-40cb52853ce7a0715761504940b07d77bacf5ec4.tar.gz
fengari-40cb52853ce7a0715761504940b07d77bacf5ec4.tar.bz2
fengari-40cb52853ce7a0715761504940b07d77bacf5ec4.zip
Basic interactive lua cli
Diffstat (limited to 'tests/debug-cli.js')
-rw-r--r--tests/debug-cli.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/debug-cli.js b/tests/debug-cli.js
deleted file mode 100644
index aa6847f..0000000
--- a/tests/debug-cli.js
+++ /dev/null
@@ -1,19 +0,0 @@
-"use strict";
-
-const lapi = require("../src/lapi.js");
-const lauxlib = require("../src/lauxlib.js");
-const lua = require('../src/lua.js');
-const linit = require('../src/linit.js');
-
-let luaCode = `
- a = "debug me"
- debug.debug()
-`, L;
-
-L = lauxlib.luaL_newstate();
-
-linit.luaL_openlibs(L);
-
-lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
-
-lapi.lua_call(L, 0, -1);