util: support AsyncGeneratorFunction in .inspect · nodejs/node@f897860 · GitHub
Skip to content

Commit f897860

Browse files
committed
util: support AsyncGeneratorFunction in .inspect
This makes sure async generator functions are properly detected while using `util.inspect`. PR-URL: #28056 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent b690e19 commit f897860

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

lib/internal/util/inspect.js

Lines changed: 4 additions & 3 deletions

test/parallel/test-util-inspect.js

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)