[ Web ] Pass --enable-experimental-ffi when compiling WASM tests (#180127)

The CFE will start treating unsupported library imports as errors in an
upcoming change (see https://github.com/dart-lang/sdk/issues/62125)
which will cause web engine compilation tests to fail without the
`--enable-experimental-ffi` flag.

This change passes `--enable-experimental-ffi` to `dart2wasm` in
preparation for this change in behavior.
This commit is contained in:
Ben Konyi 2025-12-19 14:26:20 -05:00 committed by GitHub
parent 662fb72f3a
commit adfcf515fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -263,6 +263,7 @@ class Dart2WasmCompiler extends TestCompiler {
'--libraries-spec=${environment.dartSdkDir.path}/lib/libraries.json',
'--enable-asserts',
'--enable-experimental-ffi',
'--enable-experimental-wasm-interop',
'-DFLUTTER_WEB_USE_SKIA=${renderer == Renderer.canvaskit}',