Skip to content

[dart2js] Iterator is confused with NodeIterator #53532

Open
@Zekfad

Description

@Zekfad

Coming from Zekfad/fetch_client#9

There are new Iterator global class with Chrome 117+

JS compiler confuses it with DomIterator (which I believe is NodeIterator)

Following code throws in Chrome 117+ and works fine on older versions or on Safari/Firefox:

import 'dart:html';
import 'package:fetch_api/fetch_api.dart';

void main() {
  final e = Headers().entries();
  print(e is! DomIterator); // true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dart2jsweb-librariesIssues impacting dart:html, etc., libraries

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions