aboutsummaryrefslogtreecommitdiff
path: root/tests/manual-tests/debug-cli.js
blob: 2487a84c0536f25f47f1206b0d79e22e0184cbc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";

const lauxlib  = require("../../src/lauxlib.js");
const lua      = require('../../src/lua.js');

let luaCode = `
    a = "debug me"
    debug.debug()
`, L;

L = lauxlib.luaL_newstate();

lauxlib.luaL_openlibs(L);

lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));

lua.lua_call(L, 0, -1);