Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VM] Non-null assertions in NNBD weak mode #42357

Closed
alexmarkov opened this issue Jun 16, 2020 · 0 comments
Closed

[VM] Non-null assertions in NNBD weak mode #42357

alexmarkov opened this issue Jun 16, 2020 · 0 comments
Assignees
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. NNBD Issues related to NNBD Release

Comments

@alexmarkov
Copy link
Contributor

We should implement https://github.com/dart-lang/language/blob/master/accepted/future-releases/nnbd/feature-specification.md#automatic-debug-assertion-insertion in the VM.

For that purpose we should add --[no-]null-assertions flag which would insert assert(x != null) for every parameter of every function that has a non-nullable type (in NNBD weak mode).

@leafpetersen

@alexmarkov alexmarkov added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. NNBD Issues related to NNBD Release labels Jun 16, 2020
@alexmarkov alexmarkov self-assigned this Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. NNBD Issues related to NNBD Release
Projects
None yet
Development

No branches or pull requests

1 participant