mirror of
https://github.com/nodejs/node.git
synced 2026-11-15 10:36:53 -05:00
this commit reintroduces the REPL custom eval tests that have been introduced in https://github.com/nodejs/node/pull/57691 but reverted in https://github.com/nodejs/node/pull/57793 the tests turned out problematic before because `getReplOutput`, the function used to return the repl output wasn't taking into account that input processing and output emitting are asynchronous operation can resolve with a small delay the new implementation here replaces `getReplOutput` with `getReplRunOutput` that resolves repl inputs by running them and using the repl prompt as an indicator to when the input processing has completed PR-URL: https://github.com/nodejs/node/pull/57850 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>