Closed belowm closed 6 years ago
Can you build TeaVM from latest master and verify the provided fix?
Hello Alexey, thank you very much for looking into this so fast. Unfortunately, the change didn't seem to fix the issue.
I was able to reproduce it in isolation: https://gist.github.com/belowm/379718a5d772fcbb5c32ab9f34ffd2d8
When running this in a JVM , it correctly outputs [0, 1, 2]
, whereas the emitted JavaScript produces [2, 0, 1]
.
I commited another fix, it works with your example. Please, try again
Thanks! That fixed the issue.
This java code
...yields this javascript code, where the order of the method calls is not preserved
Unfortunately, I wasn't able to reproduce this in a trivial example.