I believe they use a timeout to handle infinite loops, but in 1.9.3 it doesn't actually loop anyway, you just get [[...]], and it throws an exception if you try to call a.collapse (or similar).
I'm guessing the problem would most likely be with their version of JRuby.