File tree 1 file changed +4
-1
lines changed
pkg/dartdev/lib/src/commands
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,8 @@ class CompileWasmCommand extends CompileSubcommandCommand {
686
686
help: defineOption.help,
687
687
abbr: defineOption.abbr,
688
688
valueHelp: defineOption.valueHelp,
689
- );
689
+ )
690
+ ..addExperimentalFlags (verbose: verbose);
690
691
}
691
692
692
693
@override
@@ -771,6 +772,7 @@ class CompileWasmCommand extends CompileSubcommandCommand {
771
772
handleOverride (optimizationFlags, 'minify' ,
772
773
args.wasParsed ('minify' ) ? null : args.flag ('minify' ));
773
774
775
+ final enabledExperiments = args.enabledExperiments;
774
776
final dart2wasmCommand = [
775
777
sdk.dartAotRuntime,
776
778
sdk.dart2wasmSnapshot,
@@ -786,6 +788,7 @@ class CompileWasmCommand extends CompileSubcommandCommand {
786
788
'--import-shared-memory' ,
787
789
'--shared-memory-max-pages=$maxPages ' ,
788
790
],
791
+ ...enabledExperiments.map ((e) => '--enable-experiment=$e ' ),
789
792
790
793
// First we pass flags based on the optimization level.
791
794
...optimizationFlags,
You can’t perform that action at this time.
0 commit comments