@@ -282,7 +282,6 @@ class Configuration {
282282 name, architecture, compiler, mode, runtime, system,
283283 nnbdMode: nnbdMode,
284284 sanitizer: sanitizer,
285- babel: stringOption ("babel" ),
286285 builderTag: stringOption ("builder-tag" ),
287286 genKernelOptions: stringListOption ("gen-kernel-options" ),
288287 vmOptions: stringListOption ("vm-options" ),
@@ -329,8 +328,6 @@ class Configuration {
329328
330329 final Sanitizer sanitizer;
331330
332- final String babel;
333-
334331 final String builderTag;
335332
336333 final List <String > genKernelOptions;
@@ -385,7 +382,6 @@ class Configuration {
385382 this .runtime, this .system,
386383 {NnbdMode ? nnbdMode,
387384 Sanitizer ? sanitizer,
388- String ? babel,
389385 String ? builderTag,
390386 List <String >? genKernelOptions,
391387 List <String >? vmOptions,
@@ -408,7 +404,6 @@ class Configuration {
408404 bool ? useQemu})
409405 : nnbdMode = nnbdMode ?? NnbdMode .strong,
410406 sanitizer = sanitizer ?? Sanitizer .none,
411- babel = babel ?? "" ,
412407 builderTag = builderTag ?? "" ,
413408 genKernelOptions = genKernelOptions ?? < String > [],
414409 vmOptions = vmOptions ?? < String > [],
@@ -448,7 +443,6 @@ class Configuration {
448443 this .system, {
449444 required this .nnbdMode,
450445 required this .sanitizer,
451- required this .babel,
452446 required this .builderTag,
453447 required this .genKernelOptions,
454448 required this .vmOptions,
@@ -486,7 +480,6 @@ class Configuration {
486480 System .host,
487481 nnbdMode: source.nnbdMode,
488482 sanitizer: source.sanitizer,
489- babel: source.babel,
490483 builderTag: source.builderTag,
491484 genKernelOptions: source.genKernelOptions,
492485 vmOptions: source.vmOptions,
@@ -523,7 +516,6 @@ class Configuration {
523516 system == other.system &&
524517 nnbdMode == other.nnbdMode &&
525518 sanitizer == other.sanitizer &&
526- babel == other.babel &&
527519 builderTag == other.builderTag &&
528520 _listsEqual (genKernelOptions, other.genKernelOptions) &&
529521 _listsEqual (vmOptions, other.vmOptions) &&
@@ -575,7 +567,6 @@ class Configuration {
575567 runtime.hashCode ^
576568 system.hashCode ^
577569 nnbdMode.hashCode ^
578- babel.hashCode ^
579570 builderTag.hashCode ^
580571 genKernelOptions.join (" & " ).hashCode ^
581572 vmOptions.join (" & " ).hashCode ^
@@ -619,7 +610,6 @@ class Configuration {
619610 fields.add ("$name : [${field .join (", " )}]" );
620611 }
621612
622- if (babel.isNotEmpty) fields.add ("babel: $babel " );
623613 if (builderTag.isNotEmpty) fields.add ("builder-tag: $builderTag " );
624614 stringListField ("gen-kernel-options" , genKernelOptions);
625615 stringListField ("vm-options" , vmOptions);
@@ -676,7 +666,6 @@ class Configuration {
676666
677667 fields.add ("nnbd: $nnbdMode ${other .nnbdMode }" );
678668 fields.add ("sanitizer: $sanitizer ${other .sanitizer }" );
679- stringField ("babel" , babel, other.babel);
680669 stringField ("builder-tag" , builderTag, other.builderTag);
681670 stringListField (
682671 "gen-kernel-options" , genKernelOptions, other.genKernelOptions);
@@ -865,9 +854,6 @@ class Compiler extends NamedEnum {
865854 Runtime .firefox,
866855 Runtime .chrome,
867856 Runtime .safari,
868- Runtime .ie9,
869- Runtime .ie10,
870- Runtime .ie11,
871857 Runtime .edge,
872858 Runtime .chromeOnAndroid,
873859 ];
@@ -1007,9 +993,6 @@ class Runtime extends NamedEnum {
1007993 static const firefox = Runtime ._('firefox' );
1008994 static const chrome = Runtime ._('chrome' );
1009995 static const safari = Runtime ._('safari' );
1010- static const ie9 = Runtime ._('ie9' );
1011- static const ie10 = Runtime ._('ie10' );
1012- static const ie11 = Runtime ._('ie11' );
1013996 static const edge = Runtime ._('edge' );
1014997 static const chromeOnAndroid = Runtime ._('chromeOnAndroid' );
1015998 static const none = Runtime ._('none' );
@@ -1026,9 +1009,6 @@ class Runtime extends NamedEnum {
10261009 firefox,
10271010 chrome,
10281011 safari,
1029- ie9,
1030- ie10,
1031- ie11,
10321012 edge,
10331013 chromeOnAndroid,
10341014 none
@@ -1043,27 +1023,14 @@ class Runtime extends NamedEnum {
10431023
10441024 const Runtime ._(super .name);
10451025
1046- bool get isBrowser => const [
1047- ie9,
1048- ie10,
1049- ie11,
1050- edge,
1051- safari,
1052- chrome,
1053- firefox,
1054- chromeOnAndroid
1055- ].contains (this );
1056-
1057- bool get isIE => name.startsWith ("ie" );
1026+ bool get isBrowser =>
1027+ const [edge, safari, chrome, firefox, chromeOnAndroid].contains (this );
10581028
10591029 bool get isSafari => name.startsWith ("safari" );
10601030
10611031 /// Whether this runtime is a command-line JavaScript environment.
10621032 bool get isJSCommandLine => const [d8, jsc, jsshell].contains (this );
10631033
1064- /// If the runtime doesn't support `Window.open` , we use iframes instead.
1065- bool get requiresIFrame => ! const [ie11, ie10].contains (this );
1066-
10671034 /// The preferred compiler to use with this runtime if no other compiler is
10681035 /// specified.
10691036 Compiler get defaultCompiler {
@@ -1080,9 +1047,6 @@ class Runtime extends NamedEnum {
10801047 case firefox:
10811048 case chrome:
10821049 case safari:
1083- case ie9:
1084- case ie10:
1085- case ie11:
10861050 case edge:
10871051 case chromeOnAndroid:
10881052 return Compiler .dart2js;
0 commit comments