Hi,
I'm currently getting InternalError: too much recursion if new ImageLayer(...) is in the code (doesn't need to be ran just in the code).

Note that this is only in the browser (Edge/Chrome/Firefox) and not when ran in a capacitor web app.
line that causes the reqursion:

commenting the call W0(); makes the problem go away.