diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-12 17:12:08 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-12 17:12:08 +1000 |
commit | 7ab3254e90780bacfd096de84eab31778ae09a26 (patch) | |
tree | b46e0552d0ad7d2552a02dc47c9c152de83b4270 /src/lparser.js | |
parent | ef82425b8828de7c825c6d61e93e6c5a47d84348 (diff) | |
download | fengari-7ab3254e90780bacfd096de84eab31778ae09a26.tar.gz fengari-7ab3254e90780bacfd096de84eab31778ae09a26.tar.bz2 fengari-7ab3254e90780bacfd096de84eab31778ae09a26.zip |
.is_vararg should be a boolean
Diffstat (limited to 'src/lparser.js')
-rw-r--r-- | src/lparser.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lparser.js b/src/lparser.js index 3c50163..324425c 100644 --- a/src/lparser.js +++ b/src/lparser.js @@ -745,7 +745,7 @@ const parlist = function(ls) { let fs = ls.fs; let f = fs.f; let nparams = 0; - f.is_vararg = 0; + f.is_vararg = false; if (ls.t.token !== char[')']) { /* is 'parlist' not empty? */ do { switch (ls.t.token) { @@ -756,7 +756,7 @@ const parlist = function(ls) { } case R.TK_DOTS: { /* param -> '...' */ llex.luaX_next(ls); - f.is_vararg = 1; /* declared vararg */ + f.is_vararg = true; /* declared vararg */ break; } default: llex.luaX_syntaxerror(ls, defs.to_luastring("<name> or '...' expected", true)); |