google / j2cl

Java to Closure JavaScript transpiler
Apache License 2.0
1.23k stars 144 forks source link

Suggested tests to add to J2CL, prompted by a bug in GWT #155

Closed niloc132 closed 2 years ago

niloc132 commented 2 years ago

A patch made to GWT last year introduced a bug in turning Longs to strings - while the same patch was made to J2CL, it did not have an issue with signs, so these tests should pass as-is. With that said, there was no test coverage for values that are positive as longs, but negative when treated as an int, with all high bits set.

See https://github.com/gwtproject/gwt/pull/9769