diff --git a/streams/readable-streams/from.any.js b/streams/readable-streams/from.any.js index b38d54b9a062b1..d8144c5f4c8a82 100644 --- a/streams/readable-streams/from.any.js +++ b/streams/readable-streams/from.any.js @@ -18,11 +18,6 @@ const iterableFactories = [ return ['a', 'b'][Symbol.iterator](); }], - ['a string', () => { - // This iterates over the code points of the string. - return 'ab'; - }], - ['a Set', () => { return new Set(['a', 'b']); }], @@ -170,6 +165,7 @@ const badIterables = [ ['Object.create(null)', Object.create(null)], ['a function', () => 42], ['a symbol', Symbol()], + ['a string', 'ab'], ['an object with a non-callable @@iterator method', { [Symbol.iterator]: 42 }],