summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-02 18:44:13 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-02 18:44:23 +1000
commit59d5ff59e3b9eacc2b2aa8e92e71f31914d09545 (patch)
tree03d49ca0df2318895bed4cd6b1dfef4ba7e8ef56 /src
parentd9865ac5163f467268dcd894320bb283e053badb (diff)
downloadfengari-59d5ff59e3b9eacc2b2aa8e92e71f31914d09545.tar.gz
fengari-59d5ff59e3b9eacc2b2aa8e92e71f31914d09545.tar.bz2
fengari-59d5ff59e3b9eacc2b2aa8e92e71f31914d09545.zip
src/debug.js: Fix incorrect argument order to new TValue
Diffstat (limited to 'src')
-rw-r--r--src/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index c9c4c1e..d429457 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -183,7 +183,7 @@ const collectvalidlines = function(L, f) {
let t = new TValue(CT.LUA_TTABLE, ltable.luaH_new(L));
L.stack[L.top++] = t;
assert(L.top <= L.ci.top, "stack overflow");
- let v = new TValue(true, CT.LUA_TBOOLEAN);
+ let v = new TValue(CT.LUA_TBOOLEAN, true);
for (let i = 0; i < f.l.p.length; i++)
lobject.table_newindex(t, lineinfo[i], v);
}