From 6482d1ddc52f26d0a8e2e2a398276db73fbaa2bf Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 23 Feb 2017 15:02:16 +0100 Subject: coroutine.running, upvalue need to be attached to their thread --- src/lundump.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lundump.js') diff --git a/src/lundump.js b/src/lundump.js index ab1dd6f..b79e6ea 100644 --- a/src/lundump.js +++ b/src/lundump.js @@ -293,7 +293,7 @@ class BytecodeParser { luaU_undump(L) { this.checkHeader(); - let cl = new LClosure(this.readByte()); + let cl = new LClosure(L, this.readByte()); L.stack[L.top] = cl; L.top++; -- cgit v1.2.3-54-g00ecf