Skip to content

Max int is returned as 0 when compiled to js #57030

@a-h-mzd

Description

@a-h-mzd

This code actually returns the maximum int value when run on other platforms like mac but returns 0 when compiled to js

void main() {
  print('max: ${1 << 32}');
}

Dart SDK version: 3.5.4 (stable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.closed-as-intendedClosed as the reported issue is expected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions