web: add runtime checks for input types of >> and >>> operators #45534
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
P3
A lower priority bug or feature request
web-dart2js
web-dev-compiler
Currently
>>
and>>>
do not check that the input is not a double. This check was elided back in the days of Dart-1 and we can now fix it given the stronger typing guarantees we have today.Dart2js would need to add some specializations to ensure the checks are optimized away when the types are properly provided.
Example test failure in:
corelib/unsigned_shift_test/07
(code such as2.4 as dynamic >>> 1
)./cc @rakudrama @nshahan
The text was updated successfully, but these errors were encountered: