Skip to content

Consider using _bitfield_io.dart instead of _bitfield_web.dart on dart2wasm #145540

@eyebrowsoffire

Description

@eyebrowsoffire

As of right now, the conditional import in bitfield.dart is based on dart.library.js_util, which evaluates to true on both JS and wasm backends. (See

if (dart.library.js_util) '_bitfield_web.dart' as bitfield;
). However, the reason for the separate web implementation is for JS floating-point precision issues, which do not apply to wasm. We should consider using the _bitfield_io.dart implementation in dart2wasm, which basically means switching the conditional import to use something like dart.library.html or dart.library.js or something like that instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    e: wasmIssues related to the wasm build of Flutter Web.engineflutter/engine related. See also e: labels.platform-webWeb applications specificallyteam-webOwned by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions