Skip to content

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

Open
@lrhn

Description

@lrhn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions