aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-23 16:22:38 +1000
committerBenoit Giannangeli <giann008@gmail.com>2017-05-24 10:15:31 +0200
commit85e4964ecc198dad6a9b4f3e179acf80aca2da93 (patch)
treea33534100db9e7bd8d12ec246b158c52917b9897 /src
parent952fbbcbf5cffa3c480a3a0d045ad52941d600af (diff)
downloadfengari-85e4964ecc198dad6a9b4f3e179acf80aca2da93.tar.gz
fengari-85e4964ecc198dad6a9b4f3e179acf80aca2da93.tar.bz2
fengari-85e4964ecc198dad6a9b4f3e179acf80aca2da93.zip
src/ldo.js: LUA_YIELD comes from defs.TS not lstate
Diffstat (limited to 'src')
-rw-r--r--src/ldo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldo.js b/src/ldo.js
index 701a211..4ed8380 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -415,7 +415,7 @@ const unroll = function(L, ud) {
while (L.ci !== L.base_ci) { /* something in the stack */
if (!(L.ci.callstatus & lstate.CIST_LUA)) /* C function? */
- finishCcall(L, lstate.LUA_YIELD); /* complete its execution */
+ finishCcall(L, TS.LUA_YIELD); /* complete its execution */
else { /* Lua function */
lvm.luaV_finishOp(L); /* finish interrupted instruction */
lvm.luaV_execute(L); /* execute down to higher C 'boundary' */