moonscript
moonscript copied to clipboard
Odd bug when loading strings
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.