diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-10-09 07:49:20 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-11-09 12:56:17 +0100 |
commit | 97a52383d4194678b781e8826c6512fc6fe40288 (patch) | |
tree | 1ddc466da9adde4e2025cddd591ad85e0b3ff0ac /src/lparser.js | |
parent | a5d5b5f695ad557e25911f08be2d132ab1be658c (diff) | |
download | fengari-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/lparser.js')
-rw-r--r-- | src/lparser.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lparser.js b/src/lparser.js index 7fc1458..ddd514e 100644 --- a/src/lparser.js +++ b/src/lparser.js @@ -7,7 +7,7 @@ const lcode = require('./lcode.js'); const ldo = require('./ldo.js'); const lfunc = require('./lfunc.js'); const llex = require('./llex.js'); -const llimit = require('./llimit.js'); +const llimits = require('./llimits.js'); const lobject = require('./lobject.js'); const lopcodes = require('./lopcodes.js'); const lstring = require('./lstring.js'); @@ -383,7 +383,7 @@ const adjust_assign = function(ls, nvars, nexps, e) { const enterlevel = function(ls) { let L = ls.L; ++L.nCcalls; - checklimit(ls.fs, L.nCcalls, llimit.LUAI_MAXCCALLS, defs.to_luastring("JS levels", true)); + checklimit(ls.fs, L.nCcalls, llimits.LUAI_MAXCCALLS, defs.to_luastring("JS levels", true)); }; const leavelevel = function(ls) { @@ -652,7 +652,7 @@ const recfield = function(ls, cc) { let val = new expdesc(); if (ls.t.token === R.TK_NAME) { - checklimit(fs, cc.nh, llimit.MAX_INT, defs.to_luastring("items in a constructor", true)); + checklimit(fs, cc.nh, llimits.MAX_INT, defs.to_luastring("items in a constructor", true)); checkname(ls, key); } else /* ls->t.token === '[' */ yindex(ls, key); @@ -690,7 +690,7 @@ const lastlistfield = function(fs, cc) { const listfield = function(ls, cc) { /* listfield -> exp */ expr(ls, cc.v); - checklimit(ls.fs, cc.na, llimit.MAX_INT, defs.to_luastring("items in a constructor", true)); + checklimit(ls.fs, cc.na, llimits.MAX_INT, defs.to_luastring("items in a constructor", true)); cc.na++; cc.tostore++; }; @@ -1122,7 +1122,7 @@ const assignment = function(ls, lh, nvars) { suffixedexp(ls, nv.v); if (nv.v.k !== expkind.VINDEXED) check_conflict(ls, lh, nv.v); - checklimit(ls.fs, nvars + ls.L.nCcalls, llimit.LUAI_MAXCCALLS, defs.to_luastring("JS levels", true)); + checklimit(ls.fs, nvars + ls.L.nCcalls, llimits.LUAI_MAXCCALLS, defs.to_luastring("JS levels", true)); assignment(ls, nv, nvars + 1); } else { /* assignment -> '=' explist */ checknext(ls, char['=']); |