fix iterator constructor

This commit is contained in:
Rowan 2024-11-09 02:25:12 -06:00
parent 0e760fa25b
commit f39a926743

View file

@ -10,7 +10,7 @@ export class Iterator {
static from(value) {
if (!value) { return }
const types = Iterator.handledTypes
const ctr = value.constructor || value.constructor
const ctr = value.constructor || value.prototype.constructor
if (types.has(ctr)) {
const handler = types.get(ctr)