Skip to content

Fix e2e 'evaluate' test to use new Closure toString format #2624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 27, 2025

Conversation

biggs0125
Copy link
Contributor

As of the release of Dart 3.8 on the stable branch, DDC now produces a different String (more in line with the other Dart backends) from the toString of closures. Rather than using JS's toString on the underlying Function, DDC now generates a string using the Function's RTI object.

This has caused the updated test to start failing in CI:
https://github.com/dart-lang/webdev/actions/runs/15255960533

Fix the test by updating the expectation string to match the new string format.

@biggs0125 biggs0125 merged commit 64492b2 into dart-lang:main May 27, 2025
43 of 52 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jun 2, 2025
Revisions updated by `dart tools/rev_sdk_deps.dart`.

ecosystem (https://github.com/dart-lang/ecosystem/compare/815d4ba..8cebaf0):
  8cebaf0  2025-05-28  Kevin Moore  team lints: update to latest pkg:lints (dart-lang/ecosystem#359)

protobuf (https://github.com/dart-lang/protobuf/compare/d940c8d..c69077d):
  c69077d  2025-05-30  Devon Carew  revert the change to not generate empty enum files (google/protobuf.dart#1016)
  08e7410  2025-05-29  Devon Carew  ignore unused_imports for json files (google/protobuf.dart#1013)
  efdabd7  2025-05-29  Devon Carew  update how we calculate import prefixes (google/protobuf.dart#1012)
  60dfaed  2025-05-28  Devon Carew  rev package:protoc_plugin to 22.3.0 (google/protobuf.dart#1011)
  86dfa6b  2025-05-27  Devon Carew  move generated test code from out/ to test/gen/ (google/protobuf.dart#1009)

test (https://github.com/dart-lang/test/compare/42a6d33..e2ddae9):
  e2ddae9f  2025-06-01  dependabot[bot]  Bump the github-actions group with 2 updates (dart-lang/test#2506)

tools (https://github.com/dart-lang/tools/compare/a0dda7e..04c6849):
  04c68495  2025-06-01  dependabot[bot]  Bump actions/setup-node from 3 to 4 in the github-actions group (dart-lang/tools#2106)

webdev (https://github.com/dart-lang/webdev/compare/5dbb30e..64492b2):
  64492b2d  2025-05-27  Nate Biggs  Fix e2e 'evaluate' test to use new Closure toString format. (dart-lang/webdev#2624)

webdriver (https://github.com/google/webdriver.dart/compare/f52afbf..b8f511d):
  b8f511d  2025-06-02  dependabot[bot]  Bump nanasess/setup-chromedriver (google/webdriver.dart#329)

Change-Id: If832327efab4615677528599ac51cecf4bb09fdf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/432362
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants