Skip to content

Use operator methods in JS interop #46359

@jodinathan

Description

@jodinathan

I have built a JS bindings package that read WebIDLs and MDN to generate JS wrappers with package:js: https://pub.dev/packages/js_bindings

When I try to use the package, it throws this error while compiling:
JS interop classes do not support [] and []= operator methods.

Will you support operator methods in JS?
How can I work this around?

This tracker is for issues related to:

  • dart2js
    Dart SDK version: 2.13.1 (stable) (Fri May 21 12:45:36 2021 +0200) on "macos_x64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.closed-duplicateClosed in favor of an existing reportweb-js-interopIssues that impact all js interop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions