summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldblib.js')
-rw-r--r--src/ldblib.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ldblib.js b/src/ldblib.js
index 2faa9f0..5912b5a 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -395,8 +395,7 @@ const dblib = {
"upvaluejoin": db_upvaluejoin
};
-// Only with Node
-if (!WEB) {
+if (typeof process !== "undefined") { // Only with Node
const readlineSync = require('readline-sync');
readlineSync.setDefaultOptions({
prompt: 'lua_debug> '