summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 2d30074..b7fed83 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -437,7 +437,7 @@ const lua_rawset = function(L, idx) {
};
const lua_rawseti = function(L, idx, n) {
- assert(2 < L.top - L.ci.funcOff, "not enough elements in the stack");
+ assert(1 < L.top - L.ci.funcOff, "not enough elements in the stack");
let o = index2addr(L, idx);
assert(o.ttistable(), "table expected");
ltable.luaH_setint(o.value, n, L.stack[L.top - 1]);