Skip to content

Update the value in Language/Expressions/Shift/integer_t03.dart to be compatible with dart on the web #1024

@nshahan

Description

@nshahan

Current the web backends (dart2js and ddc) have the compile time error:

tests/co19/src/Language/Expressions/Shift/integer_t03.dart:22:11:
Error: The integer literal 0x7FFFFFFFFFFFFFFF can't be represented exactly in JavaScript.
  int j = 0x7FFFFFFFFFFFFFFF;
          ^^^^^^^^^^^^^^^^^^
Error: Compilation failed.

If tests contain numeric literals that can not be represented exactly in JavaScript because they are too large then we lose all coverage of the cases in that test file.

Could this test be adapted to use 0x7FFFFFFFFFFFFFFF when running on the dart vm and 0x7FFFFFFFFFFFF000 otherwise?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions