Open
Description
https://mdn-bcd-collector.gooborg.com/tests/javascript/builtins/Iterator/Iterator
As discussed in mdn/browser-compat-data#26472 and linked issues, the Iterator
constructor cannot be used directly, only as super()
for a subclass.
The generated test for it is currently:
(function () {
if (!("Iterator" in self)) {
return { result: false, message: "Iterator is not defined" };
}
return bcd.testConstructor("Iterator", false);
})();
And that currently results in "Support Unknown" as invoking the constructor throws a TypeError, as it should.
A test for this would have to do something more like the example in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Iterator/Iterator#examples
Metadata
Metadata
Assignees
Labels
No labels