Steps to reproduce:
const a = new LuaTable();
const entries = [...pairs(a)];
Here's a link to this code snippet on the TSTL playground: https://typescripttolua.github.io/play#code/MYewdgzgLgBAhjAvDMBTA7jAMgVzgFTgCMAbVACgEoBuAKFEllTCgCcBLVCJGAbQDpBABzjtWEcnEoBdOkA
Steps to reproduce:
Here's a link to this code snippet on the TSTL playground: https://typescripttolua.github.io/play#code/MYewdgzgLgBAhjAvDMBTA7jAMgVzgFTgCMAbVACgEoBuAKFEllTCgCcBLVCJGAbQDpBABzjtWEcnEoBdOkA