summaryrefslogtreecommitdiff
path: root/src/defs.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-01-29 14:52:06 +1100
committerdaurnimator <quae@daurnimator.com>2018-01-29 14:52:06 +1100
commitaf4c83ba92a0041a19473d786d5722b325cdfc14 (patch)
treeb2633d264fcf67d087581f2d61854057320b24d4 /src/defs.js
parent5439a23f4a60788a511704c9ae3c754222c15a64 (diff)
downloadfengari-af4c83ba92a0041a19473d786d5722b325cdfc14.tar.gz
fengari-af4c83ba92a0041a19473d786d5722b325cdfc14.tar.bz2
fengari-af4c83ba92a0041a19473d786d5722b325cdfc14.zip
src/defs.js: Remove defs.char
Diffstat (limited to 'src/defs.js')
-rw-r--r--src/defs.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/defs.js b/src/defs.js
index 05e0048..5886eba 100644
--- a/src/defs.js
+++ b/src/defs.js
@@ -2,12 +2,6 @@
const { LUAI_MAXSTACK } = require('./luaconf.js');
-// To avoid charCodeAt everywhere
-const char = [];
-for (let i = 0; i < 127; i++)
- char[String.fromCharCode(i)] = i;
-module.exports.char = char;
-
/* mark for precompiled code ('<esc>Lua') */
const LUA_SIGNATURE = "\x1bLua";