summaryrefslogtreecommitdiff
path: root/src/ldo.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-03 19:16:16 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-03 19:16:16 +1000
commit735bc392056f7c55c981b68feb941bf1cc5a8ff3 (patch)
treee46733b35371b4be5fb30bb4400bb6443d09c1b3 /src/ldo.js
parent4cf090d7ede6aa3153ad912c580cfb07b1e60a9d (diff)
downloadfengari-735bc392056f7c55c981b68feb941bf1cc5a8ff3.tar.gz
fengari-735bc392056f7c55c981b68feb941bf1cc5a8ff3.tar.bz2
fengari-735bc392056f7c55c981b68feb941bf1cc5a8ff3.zip
Pipe | has higher precedence than equals
Diffstat (limited to 'src/ldo.js')
-rw-r--r--src/ldo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldo.js b/src/ldo.js
index 1e9d355..c762798 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -77,7 +77,7 @@ const luaD_precall = function(L, off, nresults) {
luaD_hook(L, defs.LUA_HOOKCALL, -1);
let n = f(L); /* do the actual call */
- assert(typeof n == "number" && n >= 0 && n==n|0, "invalid return value from JS function (expected integer)");
+ assert(typeof n == "number" && n >= 0 && (n|0) === n, "invalid return value from JS function (expected integer)");
assert(n < L.top - L.ci.funcOff, "not enough elements in the stack");
luaD_poscall(L, ci, L.top - n, n);