22e24c69ab
Fixes https://github.com/dart-lang/sdk/issues/62626 Moves the ffi check out of _js_interop_checks and into its own dart2wasm-specific check, and then gates any ffi transforms based on whether we're allowed to import it. This lets the dry-run run without any potential crashes related to transforming ffi code. A new dry run enum is added as well to disambiguate JS interop checks from a dart:ffi import. Change-Id: I9ccaa21099cadb14545c46619b97439623d0415a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/483680 Commit-Queue: Srujan Gaddam <srujzs@google.com> Reviewed-by: Nate Biggs <natebiggs@google.com>