Error in playground OCAML region when unicode string is used


#1

The following code on playground raises error in OCAML region and so does not get evaluated.

playground url

let x = {js|स्थान|js};
Js.log(x)


#2

Looks like any Unicode character is triggering this, e.g. {j|🔥|j}.

I recommend filing a bug, but not sure which repo exactly. Probably https://github.com/facebook/reason

@chenglou can you confirm that’s the correct repo for this bug?


#3

Yeah sorry, this is a known issue: https://github.com/reasonml/reasonml.github.io/issues/280

This should work but I think the jsoo compiled bs compiler has some trouble with unicode…


#4

fixed in bucklescript playground, the reason playground will pick up the changes soon