test_runner: don't exceed call stack when filtering · nodejs/node@3287553 · GitHub
Skip to content

Commit 3287553

Browse files
cjihrigaduh95
authored andcommitted
test_runner: don't exceed call stack when filtering
This commit updates filteredRun() to call postRun() after a microtask instead of synchronously. Currently, if approximately 1,545 subtests are filtered, enough synchronous calls can be made to cause a call stack exceeded exception. PR-URL: #52488 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent b4ccb6c commit 3287553

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/internal/test_runner/test.js

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)