Permutations Test

After I've written about 4'000 lines of code of my AEC-to-WebAssembly compiler, I think I'm finally able to implement most of the program in AEC and only use JavaScript for helper functions. So, I'll try to write a program that prints all the permutations of the digits of a number, with most of the program written in AEC.
This only works in very modern browsers. I'm not too interested in targeting archaic browsers here. This only works in Firefox 62 and newer or Chrome 69 and newer. After a few years (if not months), all JavaScript environments will become as capable as they are, rather than like Internet Explorer.





AEC program output:

You can see the source code of the AEC program here.