Skip to content

dart:html IntersectionObserver api requires a call to dart:js allowInterop on dart2js #35484

Closed
@jacob314

Description

@jacob314

I'm guessing we are just missing a call to convert a Dart function into a JS function in the dart:html code generation.

As expected, IntersectionObserver works under DDC where functions can be passed between Dart and JS without conversion.

Example where I had to add allow interop:
flutter/devtools@13c304c

Metadata

Metadata

Assignees

Labels

web-librariesIssues impacting dart:html, etc., libraries

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions