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:
Siva
2018-04-16 08:44:38 -07:00
committed by GitHub
parent 6c049ec286
commit b0b2c0077a
3 changed files with 7 additions and 1 deletions

View File

@@ -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) {