moonscript icon indicating copy to clipboard operation
moonscript copied to clipboard

Odd bug when loading strings

Open DarkWiiPlayer opened this issue 7 years ago • 0 comments

I've just found a rather peculiar problem (see example).

When calling moonscript.loadstring with an environment table it seems to, at some point while compiling, set the environment to that table, which may crash the compiler. I've tried finding the source of this problem in the moonscript source code, but had no luck so far. By all means this should work, it just... doesn't.

The example code should reproduce this bug and provide some (hopefully useful) output.

DarkWiiPlayer avatar Oct 20 '18 15:10 DarkWiiPlayer