Skip to content

[various] invalid_runtime_check_with_js_interop_types violations in web packages #187454

Open

Description

@stuartmorgan-g

As part of re-syncing flutter/packages analysis options, we tried to pick up invalid_runtime_check_with_js_interop_types, but a bunch of our web plugins fail it:

  • camera_web: Lots of Catch clause with type 'DOMException' checks whether the caught value is a JS interop type
  • google_identity_services_web: A couple of Object/JObject cast/compares
  • google_maps_flutter_web: Various casts and compares
  • google_sign_in_web: Cast from 'JSAny?' to 'T' casts a JS interop value to a Dart type
  • video_player_web: Runtime check between 'Object' and 'DOMException' checks whether a Dart value is a JS interop type

Rather than try to fix them as part of merging in the new analysis options, I'm going to disable that one in the global config for now with a reference to this issue. Someone with JS interop experience should enable it and fix the violations.

Activity

  1. added
    packageflutter/packages repository. See also p: labels.
    c: tech-debtTechnical debt, code quality, testing, etc.
    team-webOwned by Web platform team
    on Jun 2, 2026
  2. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Oct 7, 2026
  3. flutter-triage-bot commented on Oct 7, 2026

    @flutter-triage-bot

    This issue is assigned to @mdebbar but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

⏳Bot is counting down the days until it unassigns the issueassigned for triageissue is assigned to a domain expert for further triagec: tech-debtTechnical debt, code quality, testing, etc.packageflutter/packages repository. See also p: labels.team-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