Turn support for sync-async on in Flutter. (#16543)
* Turn support for sync-async on in Flutter. With this feature execution of async functions starts immediately instead of it being delayed by one microtask tick. * Address review comments. * Adjust some stack trace expectations which are slightly different with --sync-async turned on.
This commit is contained in:
@@ -90,6 +90,7 @@ Future<CompilerOutput> compile(
|
||||
'--sdk-root',
|
||||
sdkRoot,
|
||||
'--strong',
|
||||
'--sync-async',
|
||||
'--target=flutter',
|
||||
];
|
||||
if (trackWidgetCreation)
|
||||
@@ -215,6 +216,7 @@ class ResidentCompiler {
|
||||
_sdkRoot,
|
||||
'--incremental',
|
||||
'--strong',
|
||||
'--sync-async',
|
||||
'--target=flutter',
|
||||
];
|
||||
if (outputPath != null) {
|
||||
|
||||
Reference in New Issue
Block a user