dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 75 forks source link

Updating Chrome Proxy Service tests to avoid manually invoking generic Dart constructors. #2477

Closed Markzipan closed 3 months ago

Markzipan commented 3 months ago

This fixes breakages from an incoming change to update how DDC represents generic types.

The old code here was manually invoking Dart constructors from JS; this broke when we changed their APIs to accept an RTI. The new scheme evals a top-level object (initialized with the correct state).

Old breaks: https://github.com/dart-lang/webdev/actions/runs/10285790803/job/28464927549