https://developer.mozilla.org/en-US/docs/Web/API/History/rep...
And no, this has nothing to do with security. The browser could easily filter the list for same origin even with the list/ array approach. People just need to invent things that could've been just another data structure perhaps with some kind of Compare And Swap wrapper for concurrency.
We are building apps for our clients in it, we will also have our own product built with Clojure and ClojureScript soon.