mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 18:49:37 +00:00
2379cdc080
- Add a runtime flag to enable checks on non-nullable APIs that return values from non-static JavaScript interop. - Call a new helper method at the call site when these APIs are detected to perform the null check. - Add test file for the cases we can detect and enforce. NOTE: This does not make non-static JavaScript interop sound. This only adds more checks to enforce soundness with respect to nullability in some cases. There are still holes that will never be closed due to the permissive nature of this form of JavaScript interop. Change-Id: I2f88d1543a683fdc84d764e2b0eaafeb0ca73107 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358581 Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Mayank Patke <fishythefish@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Srujan Gaddam <srujzs@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> |
||
---|---|---|
.. | ||
co19 | ||
corelib | ||
dartdevc | ||
ffi | ||
hot_reload | ||
language | ||
lib | ||
macro_build | ||
modular | ||
standalone | ||
web | ||
legacy_status_dart2js.csv | ||
OWNERS | ||
README.md |
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.