Skip to content

Commit bbeda37

Browse files
rakudramacommit-bot@chromium.org
authored andcommitted
Address review comments from 150935
Change-Id: Ia137c8c139e13cb9b3f8017328f5a79edfcbc0b2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151022 Reviewed-by: Sigmund Cherem <[email protected]> Commit-Queue: Stephen Adams <[email protected]>
1 parent c1f0bc3 commit bbeda37

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

pkg/compiler/lib/src/ir/static_type.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,10 +1943,10 @@ class TypeMap {
19431943
if (newTypesOfInterest.length > 1 ||
19441944
(newTypesOfInterest.length == 1 &&
19451945
newTypesOfInterest.single != info.declaredType)) {
1946-
// If [newTypesOfInterest] only contains the we have no information
1947-
// about the variable (it is either an instance of its declared type
1948-
// or null) and the canonical way to represent this is to have _no_
1949-
// target info.
1946+
// If [newTypesOfInterest] only contains the declared type we have no
1947+
// information about the variable (it is either an instance of its
1948+
// declared type or null) and the canonical way to represent this is
1949+
// to have _no_ target info.
19501950
TypeHolder typeHolderIfNonNull =
19511951
new TypeHolder(info.declaredType, newTypesOfInterest, null);
19521952
TypeHolder typeHolderIfNull = new TypeHolder(info.declaredType, null,

tests/dart2js/regress_42281_test.dart

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ComponentFactory? test(String s, [Map<String, ComponentFactory>? mf2]) {
2525
return f;
2626
}
2727

28-
work() {
28+
main() {
2929
Map<String, ComponentFactory> mf2 = {'int': ComponentFactory<num>()};
3030

3131
test('String');
@@ -35,12 +35,3 @@ work() {
3535
test('RegExp');
3636
test('RegExp', mf2);
3737
}
38-
39-
main() {
40-
try {
41-
work();
42-
} catch (e, st) {
43-
print(e);
44-
print(st);
45-
}
46-
}

tests/dart2js_2/regress_42281_test.dart

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ComponentFactory test(String s, [Map<String, ComponentFactory> mf2]) {
2525
return f;
2626
}
2727

28-
work() {
28+
main() {
2929
Map<String, ComponentFactory> mf2 = {'int': ComponentFactory<num>()};
3030

3131
test('String');
@@ -35,12 +35,3 @@ work() {
3535
test('RegExp');
3636
test('RegExp', mf2);
3737
}
38-
39-
main() {
40-
try {
41-
work();
42-
} catch (e, st) {
43-
print(e);
44-
print(st);
45-
}
46-
}

0 commit comments

Comments
 (0)