stream: treat null asyncIterator as undefined · nodejs/node@f10d9ad · GitHub
Skip to content

Commit f10d9ad

Browse files
jazellymarco-ippolito
authored andcommitted
stream: treat null asyncIterator as undefined
According to the spec, getIterator should normalize incoming method to undefined if it is either undefined or null. This PR enforces that spec compliance with passed WPT. PR-URL: #55119 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Mattias Buelens <mattias@buelens.com>
1 parent 81bcec0 commit f10d9ad

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

lib/internal/webstreams/util.js

Lines changed: 2 additions & 1 deletion

test/wpt/status/streams.json

Lines changed: 0 additions & 7 deletions

0 commit comments

Comments
 (0)