While converting a JS program to rescript I discovered that lsr(-123,0) is compiled to just -123 which is not equivalent to -123 >>> 0. I wonder if this is a bug?
https://rescript-lang.org/try?version=v11.1.4&module=esmodule&code=DYUwLgBAHhC8HAM4CcAUBaAjAJgMwBoAGASgChRIBPOCAUmQEMB3VAIizwgD4eJDWypAFKIAdMAD2Ac1QxY8SsSA
While converting a JS program to rescript I discovered that
lsr(-123,0)is compiled to just-123which is not equivalent to-123 >>> 0. I wonder if this is a bug?https://rescript-lang.org/try?version=v11.1.4&module=esmodule&code=DYUwLgBAHhC8HAM4CcAUBaAjAJgMwBoAGASgChRIBPOCAUmQEMB3VAIizwgD4eJDWypAFKIAdMAD2Ac1QxY8SsSA