summaryrefslogtreecommitdiff
path: root/src/llimit.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-10-09 07:49:20 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-11-09 12:56:17 +0100
commit97a52383d4194678b781e8826c6512fc6fe40288 (patch)
tree1ddc466da9adde4e2025cddd591ad85e0b3ff0ac /src/llimit.js
parenta5d5b5f695ad557e25911f08be2d132ab1be658c (diff)
downloadfengari-97a52383d4194678b781e8826c6512fc6fe40288.tar.gz
fengari-97a52383d4194678b781e8826c6512fc6fe40288.tar.bz2
fengari-97a52383d4194678b781e8826c6512fc6fe40288.zip
Removed incorrect use of llimits.MAX/MIN_INT
llimit.js is renamed to llimits.js
Diffstat (limited to 'src/llimit.js')
-rw-r--r--src/llimit.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/llimit.js b/src/llimit.js
deleted file mode 100644
index 18824b2..0000000
--- a/src/llimit.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-
-const LUAI_MAXCCALLS = 200;
-module.exports.LUAI_MAXCCALLS = LUAI_MAXCCALLS;
-const LUA_MAXINTEGER = 2147483647;
-module.exports.LUA_MAXINTEGER = LUA_MAXINTEGER;
-const LUA_MININTEGER = -2147483648;
-module.exports.LUA_MININTEGER = LUA_MININTEGER;
-
-const luai_nummod = function(L, a, b) {
- let m = a % b;
- if ((m*b) < 0)
- m += b;
- return m;
-};
-module.exports.luai_nummod = luai_nummod;
-
-// If later integers are more than 32bit, LUA_MAXINTEGER will then be != MAX_INT
-const MAX_INT = 2147483647;
-module.exports.MAX_INT = MAX_INT;
-const MIN_INT = -2147483648;
-module.exports.MIN_INT = MIN_INT;