OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library dart2js.cmdline; | 5 library dart2js.cmdline; |
6 | 6 |
7 import 'dart:async' | 7 import 'dart:async' |
8 show Future, EventSink; | 8 show Future, EventSink; |
9 import 'dart:convert' show UTF8, LineSplitter; | 9 import 'dart:convert' show UTF8, LineSplitter; |
10 import 'dart:io' | 10 import 'dart:io' |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 new OptionHandler('--categories=.*', setCategories), | 349 new OptionHandler('--categories=.*', setCategories), |
350 new OptionHandler(Flags.disableTypeInference, implyCompilation), | 350 new OptionHandler(Flags.disableTypeInference, implyCompilation), |
351 new OptionHandler(Flags.terse, passThrough), | 351 new OptionHandler(Flags.terse, passThrough), |
352 new OptionHandler('--deferred-map=.+', implyCompilation), | 352 new OptionHandler('--deferred-map=.+', implyCompilation), |
353 new OptionHandler(Flags.dumpInfo, setDumpInfo), | 353 new OptionHandler(Flags.dumpInfo, setDumpInfo), |
354 new OptionHandler('--disallow-unsafe-eval', | 354 new OptionHandler('--disallow-unsafe-eval', |
355 (_) => hasDisallowUnsafeEval = true), | 355 (_) => hasDisallowUnsafeEval = true), |
356 new OptionHandler(Flags.showPackageWarnings, passThrough), | 356 new OptionHandler(Flags.showPackageWarnings, passThrough), |
357 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), | 357 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), |
358 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), | 358 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), |
| 359 new OptionHandler(Flags.enableAssertMessage, passThrough), |
359 new OptionHandler('--enable-async', (_) { | 360 new OptionHandler('--enable-async', (_) { |
360 diagnosticHandler.info( | 361 diagnosticHandler.info( |
361 "Option '--enable-async' is no longer needed. " | 362 "Option '--enable-async' is no longer needed. " |
362 "Async-await is supported by default.", | 363 "Async-await is supported by default.", |
363 api.Diagnostic.HINT); | 364 api.Diagnostic.HINT); |
364 }), | 365 }), |
365 new OptionHandler('--enable-null-aware-operators', (_) { | 366 new OptionHandler('--enable-null-aware-operators', (_) { |
366 diagnosticHandler.info( | 367 diagnosticHandler.info( |
367 "Option '--enable-null-aware-operators' is no longer needed. " | 368 "Option '--enable-null-aware-operators' is no longer needed. " |
368 "Null aware operators are supported by default.", | 369 "Null aware operators are supported by default.", |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 } else if (exitCode == 253) { | 769 } else if (exitCode == 253) { |
769 print(">>> TEST CRASH"); | 770 print(">>> TEST CRASH"); |
770 } else { | 771 } else { |
771 print(">>> TEST FAIL"); | 772 print(">>> TEST FAIL"); |
772 } | 773 } |
773 stderr.writeln(">>> EOF STDERR"); | 774 stderr.writeln(">>> EOF STDERR"); |
774 subscription.resume(); | 775 subscription.resume(); |
775 }); | 776 }); |
776 }); | 777 }); |
777 } | 778 } |
OLD | NEW |