Do not pass --preview-dart-2 to Dart VM (#21455)

--preview-dart-2 is no longer necessary as it is now the default for the
standalone Dart VM.
This commit is contained in:
Chris Bracken
2018-09-06 10:59:37 -07:00
committed by GitHub
parent cc1766d44c
commit 3519eabe8a
2 changed files with 8 additions and 9 deletions

View File

@@ -46,7 +46,7 @@ Future<Null> main(List<String> args) async {
// Analyze all the sample code in the repo
await runCommand(dart,
<String>['--preview-dart-2', path.join(flutterRoot, 'dev', 'bots', 'analyze-sample-code.dart')],
<String>[path.join(flutterRoot, 'dev', 'bots', 'analyze-sample-code.dart')],
workingDirectory: flutterRoot,
);
@@ -66,7 +66,6 @@ Future<Null> main(List<String> args) async {
try {
await runCommand(dart,
<String>[
'--preview-dart-2',
path.join(flutterRoot, 'dev', 'tools', 'mega_gallery.dart'),
'--out',
outDir.path,
@@ -89,7 +88,6 @@ Future<Null> _verifyInternationalizations() async {
final EvalResult genResult = await _evalCommand(
dart,
<String>[
'--preview-dart-2',
path.join('dev', 'tools', 'gen_localizations.dart'),
],
workingDirectory: flutterRoot,