| Code-Review | +1 |
await helper.load('entry1.dart');since the value you are creating in both entry1 and entry2 is a constant, it will also show one of the nuances of doing import rewrites: the two constants are no longer the same, since each `common.dart` copy is unique.
Consider adding an expectation check here about that? For example:
```
final a1 = await.load('entry1.dart');
final a2 = await.load('entry2.dart');
Expect.notEquals(a1, a2);
Expect.notEquals(a1.runtimeType, a2.runtimeType);
helper.done();
```
if (test.name.endsWith('_prefixed'))(optional) now that we have this, I'm torn about whether to still pass a prefix all the time. It is not harmful, so I guess it's OK, but may be confusing.
The alternative would be to move the flag under this condition too:
```
if (test.name.endsWith('_prefixed'))
...[
'--prefix-library-uris',
name
],
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
since the value you are creating in both entry1 and entry2 is a constant, it will also show one of the nuances of doing import rewrites: the two constants are no longer the same, since each `common.dart` copy is unique.
Consider adding an expectation check here about that? For example:
```
final a1 = await.load('entry1.dart');
final a2 = await.load('entry2.dart');
Expect.notEquals(a1, a2);
Expect.notEquals(a1.runtimeType, a2.runtimeType);
helper.done();
```
Great suggestion! Done.
(optional) now that we have this, I'm torn about whether to still pass a prefix all the time. It is not harmful, so I guess it's OK, but may be confusing.
The alternative would be to move the flag under this condition too:
```
if (test.name.endsWith('_prefixed'))
...[
'--prefix-library-uris',
name
],
```
I think "constant" prefixing is still beneficial to check that uri rewriting works correctly, but I've changed this to make args closer to each other
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: pkg/dynamic_modules/test/data/duplicate_library_prefixed/main.dart
Insertions: 5, Deletions: 2.
The diff is too large to show. Please review the diff.
```
```
The name of the file: pkg/dynamic_modules/test/runner/vm.dart
Insertions: 9, Deletions: 5.
The diff is too large to show. Please review the diff.
```
[dart2bytecode] Add test for prefixed duplicate libraries
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |