viruscamp

Results 59 comments of viruscamp

* made the crate no_std compatible by adding `#![no_std]` + added struct `GenIterReturn` and macro `gen_iter_return!` to iterate over a generator and get the return value

> Thanks. Did you mean that you have solved it ? No. Local guessing for stripped code is really hard, and the priority is low.

So , if I got a stripped function chunk , I cannot determine whether _ENV is used or which upval is _ENV .

DeclareLocals 1287 - 1310 case OP_JMP of LUADEC_TFORLOOP 2562 case OP_FORPREP 2958

``` lua do local function x() return x end do local function y() return y end end end do local x = 3 do local y = 4 end end...

``` lua local a,b,c do local x = 3 end do local x x = a(b) + c end do local x = a(b) + c end do local x...

bug, calucate order changed ``` function lt_function(a,b,c) a = b()>c() a = c()

test case https://github.com/viruscamp/luadec/blob/master/test/issues/issue32_global_or_to_if.lua

test codes: https://github.com/viruscamp/luadec/tree/master/test/issues/issue4_jmp_loadbool.lua https://github.com/viruscamp/luadec/tree/master/test/issues/issue4_jmp_loadbool_all.lua