Skip to content

JavaScript compilers support for --native-null-assertions in Dart 3.0 #50710

Closed
@nshahan

Description

@nshahan

Regarding the --native-null-assertions flag. It provides non-null assertions on values returned from browser APIs when the dart:html library specifies the API should be non-nullable. For each compiler we should consider if this is enabled by default, and if so can it be disabled?

For DDC this is a question of what flags are supported when you try to run a debug app with package:webdev or flutter web. For dart2js it includes those and what flags are available through dart compile js.

cc @sigmundch @srujzs @mit-mit @itsjustkevin

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dart2jsweb-dev-compilerweb-librariesIssues impacting dart:html, etc., libraries

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions