Compiler bug with unnamed enum type

We have reported this to the pas2js team asking to address asap.