Files
node/doc/api
Dario PiotrowiczandAntoine du Hamel 13e3aef053 doc: update example of using await in REPL
Clarify that the lexical scope of `const` is
invalidated when using top-level `await` in REPL.

As part of this change also add tests for the
documented behavior

Fixes: https://github.com/nodejs/node/issues/45918

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Dario Piotrowicz <dario.piotrowicz@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/57653
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2025-04-05 22:06:45 +00:00
..
2025-03-28 14:49:59 +01:00
2024-12-15 14:19:27 +00:00
2025-02-26 17:34:53 +01:00
2023-04-23 13:34:08 +00:00
2024-11-01 03:43:53 +00:00
2025-03-21 08:22:02 -07:00
2025-04-02 09:37:43 +00:00
2024-08-19 13:52:40 +00:00
2025-04-04 12:53:31 +00:00
2025-01-07 14:36:47 -05:00
2025-01-31 12:47:09 +01:00
2025-03-28 14:49:59 +01:00
2024-11-20 10:10:38 +00:00
2025-02-13 18:28:25 +01:00
2024-11-20 23:26:30 +00:00
2025-03-23 14:51:41 +00:00
2025-04-01 16:24:05 +02:00
2025-03-21 08:22:02 -07:00
2024-07-21 15:44:27 +00:00