Chris Tate
496cf577c7
Print iterators and iterator helper objects as Node does
...
console.log and util.inspect of a generator object, an iterator helper,
or an array or string iterator were refused, and printing a Map or Set
iterator threw "util.inspect of a dynamic Array Iterator is not
supported yet".
Compiled generators now carry the tag their object prints with:
"Generator" or "AsyncGenerator" by default, "Iterator Helper" for the
helpers, "Array Iterator" and "String Iterator" for the iterators the
compiler builds as generators. The spawn wrapper sets it through the new
scr_gen_set_tag; an adapter over another generator copies that
generator's tag (scr_gen_copy_tag), and generators that stand in for an
object of another class, such as a Set iterator adapted into an
iterator-typed slot, keep refusing to print. They print as Node's
Object [<tag>] {} at any depth, and Object.prototype.toString answers
[object <tag>].
The runtime's native iterators print as Node does: Object [Array
Iterator] {} and Object [String Iterator] {}, and for Map and Set
iterators the entries the next steps would produce, without advancing,
under [Set Iterator], [Set Entries], [Map Iterator] or [Map Entries],
as [Object [Set Iterator]] past the depth limit and { } when none are
left. Object.prototype.toString answers [object Set Iterator] and the
other tags.
2026-10-19 01:10:39 -05:00
..
2026-10-12 12:25:30 -05:00
2026-10-18 05:15:17 -05:00
2026-10-18 05:15:17 -05:00
2026-10-11 07:08:22 -07:00
2026-10-18 08:17:24 -07:00
2026-10-17 12:13:53 -07:00
2026-10-18 21:53:14 -05:00
2026-10-15 22:01:38 -05:00
2026-10-18 22:26:09 -05:00
2026-10-19 01:10:39 -05:00
2026-10-18 22:26:09 -05:00
2026-09-26 19:09:54 -05:00
2026-10-05 17:51:24 -05:00
2026-10-15 02:27:13 -05:00
2026-10-13 12:29:07 -05:00
2026-10-15 02:06:23 -05:00
2026-10-18 08:17:24 -07:00
2026-10-15 02:06:23 -05:00
2026-10-18 18:05:09 -05:00
2026-10-18 08:17:24 -07:00
2026-10-18 05:12:27 -05:00
2026-10-16 01:39:10 -05:00
2026-10-18 21:53:14 -05:00
2026-10-18 21:53:14 -05:00
2026-10-18 21:53:14 -05:00
2026-10-14 04:53:07 -05:00
2026-10-15 02:06:23 -05:00
2026-10-15 01:18:54 -05:00
2026-10-13 18:55:55 -05:00
2026-10-17 11:06:47 -05:00
2026-10-15 02:06:23 -05:00
2026-10-17 11:06:47 -05:00
2026-10-07 19:07:02 -05:00
2026-10-07 19:07:02 -05:00
2026-10-16 00:06:31 -05:00
2026-10-18 00:42:37 -05:00
2026-10-18 09:09:03 -05:00
2026-10-18 11:24:11 -05:00
2026-10-18 13:49:20 -07:00
2026-10-15 14:15:33 -05:00
2026-10-15 02:06:23 -05:00
2026-10-18 21:53:14 -05:00
2026-10-18 09:09:03 -05:00
2026-10-15 21:43:27 -05:00
2026-10-18 04:07:51 -05:00
2026-10-19 01:10:39 -05:00
2026-10-17 11:41:29 -05:00
2026-10-17 11:41:29 -05:00
2026-10-18 03:52:20 -05:00
2026-10-18 03:52:20 -05:00
2026-10-18 07:44:23 -05:00
2026-10-18 07:44:23 -05:00
2026-10-18 08:17:24 -07:00
2026-10-15 02:06:23 -05:00
2026-10-18 17:46:31 -05:00
2026-10-18 18:11:21 -05:00
2026-10-18 20:25:10 -05:00
2026-08-16 22:59:02 -05:00
2026-10-07 19:07:02 -05:00
2026-10-15 02:06:23 -05:00
2026-10-15 23:58:50 -05:00
2026-10-15 23:58:50 -05:00
2026-10-16 21:53:32 -05:00
2026-10-16 21:06:22 -05:00
2026-10-15 23:58:50 -05:00
2026-10-16 08:16:46 -05:00
2026-10-19 01:10:39 -05:00
2026-10-15 07:59:19 -05:00
2026-09-28 19:01:50 -05:00
2026-10-13 19:48:11 -05:00
2026-10-14 23:20:57 -05:00
2026-10-17 19:42:11 -05:00
2026-10-18 01:06:58 -05:00
2026-10-18 19:54:32 -05:00
2026-10-17 18:23:08 -05:00
2026-10-14 08:10:02 -05:00
2026-10-14 17:27:02 -05:00
2026-10-19 01:10:39 -05:00
2026-10-18 21:53:14 -05:00
2026-10-18 05:15:17 -05:00
2026-10-15 21:44:38 -05:00
2026-10-18 05:15:17 -05:00
2026-10-15 19:59:56 -05:00
2026-10-19 01:10:39 -05:00
2026-10-18 09:15:21 -07:00
2026-10-17 10:55:47 -07:00
2026-10-14 22:15:06 -05:00
2026-10-08 15:40:53 -05:00
2026-10-18 22:17:52 -05:00
2026-10-18 05:31:40 -05:00
2026-10-17 23:40:06 -05:00
2026-08-23 20:16:13 -05:00
2026-10-14 11:43:44 -05:00
2026-08-23 20:16:13 -05:00
2026-10-17 11:06:47 -05:00
2026-10-17 11:06:47 -05:00
2026-10-07 19:07:02 -05:00
2026-10-07 19:07:02 -05:00
2026-10-18 13:31:56 -07:00
2026-10-17 03:35:02 -05:00
2026-10-16 07:27:17 -05:00
2026-10-14 22:15:06 -05:00
2026-10-18 15:19:38 -07:00
2026-10-17 11:06:47 -05:00
2026-10-18 22:06:48 -05:00
2026-10-18 15:19:38 -07:00
2026-08-23 20:16:13 -05:00
2026-10-18 01:06:58 -05:00
2026-10-18 01:06:58 -05:00
2026-10-13 19:48:11 -05:00
2026-10-13 19:48:11 -05:00
2026-10-18 20:25:10 -05:00
2026-10-06 13:07:11 -05:00
2026-10-06 13:07:11 -05:00
2026-10-06 13:07:11 -05:00
2026-10-17 12:24:47 -07:00
2026-10-15 02:06:23 -05:00
2026-10-18 11:45:47 -07:00
2026-10-18 11:45:47 -07:00
2026-10-14 11:43:44 -05:00
2026-10-15 07:59:19 -05:00
2026-10-16 07:27:17 -05:00
2026-08-23 20:16:13 -05:00
2026-10-16 07:27:17 -05:00
2026-10-17 17:54:52 -05:00
2026-10-15 02:06:23 -05:00
2026-10-18 20:03:40 -05:00
2026-10-17 02:10:27 -05:00
2026-10-17 11:06:19 -05:00
2026-10-17 02:10:27 -05:00
2026-10-17 02:10:27 -05:00
2026-10-17 02:10:27 -05:00
2026-10-13 07:48:24 -05:00
2026-10-18 09:15:22 -07:00
2026-10-18 09:15:22 -07:00
2026-10-17 12:24:47 -07:00
2026-10-18 06:23:44 -07:00
2026-10-17 11:26:12 -07:00
2026-10-17 11:26:12 -07:00
2026-10-18 04:11:02 -05:00
2026-10-16 00:06:31 -05:00
2026-10-16 00:06:31 -05:00
2026-10-16 00:06:31 -05:00
2026-10-18 04:11:02 -05:00
2026-10-18 04:11:02 -05:00
2026-10-18 04:11:02 -05:00
2026-10-18 04:11:02 -05:00
2026-10-15 21:10:22 -05:00
2026-10-17 17:57:22 -05:00
2026-10-17 11:06:47 -05:00
2026-10-17 12:13:11 -07:00
2026-10-17 12:13:11 -07:00
2026-10-17 12:13:11 -07:00
2026-10-18 03:43:06 -05:00
2026-10-15 08:35:14 -05:00
2026-10-14 17:27:02 -05:00
2026-10-18 22:26:09 -05:00
2026-10-18 22:26:09 -05:00
2026-10-14 17:27:02 -05:00
2026-10-03 05:38:29 -05:00
2026-10-07 19:07:02 -05:00
2026-10-18 01:06:58 -05:00
2026-10-15 17:46:09 -05:00
2026-10-14 04:53:07 -05:00
2026-10-15 02:06:23 -05:00
2026-10-14 17:27:02 -05:00
2026-10-14 11:30:47 -05:00
2026-10-13 19:48:11 -05:00
2026-10-18 11:45:47 -07:00
2026-10-18 06:23:56 -07:00
2026-10-18 21:53:14 -05:00
2026-10-16 00:06:31 -05:00
2026-10-14 17:27:02 -05:00
2026-10-12 12:25:30 -05:00
2026-10-14 11:43:44 -05:00
2026-10-15 02:06:23 -05:00
2026-08-10 12:21:11 -05:00
2026-09-29 20:54:09 -05:00
2026-10-18 03:43:06 -05:00
2026-10-17 17:57:22 -05:00
2026-10-17 12:36:51 -05:00
2026-10-17 11:06:47 -05:00
2026-10-17 11:06:47 -05:00
2026-10-18 14:02:03 -05:00
2026-10-18 14:02:03 -05:00
2026-10-18 09:52:17 -05:00