Skip to content
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

Using tools/test.py -cdart2js fails. #59839

Open
lrhn opened this issue Jan 3, 2025 · 0 comments
Open

Using tools/test.py -cdart2js fails. #59839

lrhn opened this issue Jan 3, 2025 · 0 comments
Labels
area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test).

Comments

@lrhn
Copy link
Member

lrhn commented Jan 3, 2025

I use tools/test.py -cdar2js to test web code.
That currently gives me an error containing the following stack header when trying to run a test (tests/lib/async/stream_periodic3_test.dart):

Deobfuscated error and stack:

    at wrapException                     org-dartlang-sdk:///lib/_intern
al/js_runtime/lib/js_helper.dart 1209:19
    at _Platform._operatingSystem        org-dartlang-sdk:///lib/_intern
al/js_runtime/lib/io_patch.dart 243:5
    at _Platform.operatingSystem         org-dartlang-sdk:///lib/io/plat
form_impl.dart 56:40
    at Stopwatch._frequency              org-dartlang-sdk:///lib/io/plat
form.dart 83:44

That suggests that something is compiled using VM library code, because the web implementation of Stopwatch does not reference Platform.

If I explicitly write -ndart2js-production-linux-d8 or a similar standard configuration string, compilation works.

@lrhn lrhn added the area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test). label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test Cross-cutting test issues (use area- labels for specific failures; not used for package:test).
Projects
None yet
Development

No branches or pull requests

1 participant