aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-20 12:55:04 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-20 12:55:04 +1000
commitd8e0d9fdde537bbafb244a60ebaa40b647481a5f (patch)
tree06971f2012802e0179ddd333a482921c5dc4af88
parent27f36cc0d8dc127054b6abd590771ab155663329 (diff)
downloadfengari-d8e0d9fdde537bbafb244a60ebaa40b647481a5f.tar.gz
fengari-d8e0d9fdde537bbafb244a60ebaa40b647481a5f.tar.bz2
fengari-d8e0d9fdde537bbafb244a60ebaa40b647481a5f.zip
tests/manual-tests/debug-cli.js: make executable, set WEB global, return 0 values
-rwxr-xr-x[-rw-r--r--]tests/manual-tests/debug-cli.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/manual-tests/debug-cli.js b/tests/manual-tests/debug-cli.js
index 0bedf50..5fba8e5 100644..100755
--- a/tests/manual-tests/debug-cli.js
+++ b/tests/manual-tests/debug-cli.js
@@ -1,5 +1,8 @@
+#!/usr/bin/env node
"use strict";
+global.WEB = false;
+
const lua = require('../../src/lua.js');
const lauxlib = require('../../src/lauxlib.js');
const lualib = require('../../src/lualib.js');
@@ -15,4 +18,4 @@ lualib.luaL_openlibs(L);
lauxlib.luaL_loadstring(L, lua.to_luastring(luaCode));
-lua.lua_call(L, 0, -1);
+lua.lua_call(L, 0, 0);