dart-sdk/tests
Nicholas Shahan 2379cdc080 [ddc] Enforce more null safety on js interop
- 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>
2024-04-03 23:20:15 +00:00
..
co19 [dart2wasm] New async* desugaring 2024-03-05 11:56:00 +00:00
corelib Use an OWNERS file to restrict editing of tests/corelib to language team. 2024-04-03 15:57:20 +00:00
dartdevc [ddc] Delete variance tests for old DDC types 2024-02-14 22:29:33 +00:00
ffi [vm/ffi] Throw on attaching NativeFinalizer to deeply immutable object 2024-03-28 11:24:36 +00:00
hot_reload [ddc] Adding tests for pkg:reload_test and enabling reload tests in test bots. 2024-03-25 23:58:26 +00:00
language add package:_macros (SDK vendored) and package:macros (pub published) 2024-03-26 18:40:00 +00:00
lib [web] Add static js interop .call() tests 2024-04-02 17:03:12 +00:00
macro_build add package:_macros (SDK vendored) and package:macros (pub published) 2024-03-26 18:40:00 +00:00
modular [tests] Add repro for cross module constant 2023-11-13 22:21:40 +00:00
standalone Revert "[io] Fix a bug where Process.stdin.add exceptions could not be caught" 2024-03-25 21:03:12 +00:00
web [ddc] Enforce more null safety on js interop 2024-04-03 23:20:15 +00:00
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.