fix iterator constructor
This commit is contained in:
parent
0e760fa25b
commit
f39a926743
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ export class Iterator {
|
||||||
static from(value) {
|
static from(value) {
|
||||||
if (!value) { return }
|
if (!value) { return }
|
||||||
const types = Iterator.handledTypes
|
const types = Iterator.handledTypes
|
||||||
const ctr = value.constructor || value.constructor
|
const ctr = value.constructor || value.prototype.constructor
|
||||||
|
|
||||||
if (types.has(ctr)) {
|
if (types.has(ctr)) {
|
||||||
const handler = types.get(ctr)
|
const handler = types.get(ctr)
|
||||||
|
|
Loading…
Reference in a new issue