From f39a926743fdee067d86b31c87612cc5c8a08f21 Mon Sep 17 00:00:00 2001 From: kitsunecafe Date: Sat, 9 Nov 2024 02:25:12 -0600 Subject: [PATCH] fix iterator constructor --- src/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.js b/src/stream.js index 3027fba..1333f81 100644 --- a/src/stream.js +++ b/src/stream.js @@ -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)