[dart2js] Add test for issue #38005.
[dart2js] Add test for issue #38005.

Change-Id: Ie13483d9ad0f8eb9a1582f7d8378ae859184b654
Bug: https://github.com/dart-lang/sdk/issues/38005
Fixes: https://github.com/dart-lang/sdk/issues/38005
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116365
Reviewed-by: Sigmund Cherem <beaea8fd7d2a56555046ba4f362c8a93e3938576@google.com>
Commit-Queue: Mayank Patke <e0355b78204b67a55a952941c68c8f1b40235938@google.com>

dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk