Recently I have rewritten my R2E lib to a standalone platform in GO.
https://github.com/adomurad/r2e-platform
I have added a lot of missing stuff, like:
But by implementing the JS execution, I have noticed some nice Roc
properties.
Roc
can behave a little like JS when its needed :D (thanks to the Decoding ability)
response = browser |> Browser.executeJsWithOutput! "return 50.5 + 5;"
response |> Assert.shouldBe! 55.5
response = browser |> Browser.executeJsWithOutput! "return 50.5 + 5;"
response |> Assert.shouldBe! "55.5"
response = browser |> Browser.executeJsWithOutput! "return true"
response |> Assert.shouldBe! "true"
response = browser |> Browser.executeJsWithOutput! "return true"
response |> Assert.shouldBe! Bool.true
Last updated: Jul 06 2025 at 12:14 UTC