Skip to content

[dart2js] default to sound null safe mode #50345

@sigmundch

Description

@sigmundch

Today dart2js autodetects the mode based on the entrypoint.

  • Milestone 1: Starting Dart 3.alpha, dart2js should compile in sound mode by default and provide an error if the application contains files not migrated to null safety.
  • Milestone 2: In Dart 3.beta, the unsound flag will be exposed selectively. It will be available if an SDK build supports it (this will be determined by an SDK build flag that doesn't exist yet, potentially could be something like --enable-sound-mode)

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dart2js

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions