Skip to content

Commit 56d6e82

Browse files
TimothyGujasnell
authored andcommitted
doc: fully document --experimental-repl-await
PR-URL: #20133 Fixes: #19604 (comment) Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c31f0d0 commit 56d6e82

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

doc/api/cli.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ added: v8.5.0
7474
Enable experimental ES module support and caching modules.
7575

7676

77+
### `--experimental-repl-await`
78+
<!-- YAML
79+
added: REPLACEME
80+
-->
81+
82+
Enable experimental top-level `await` keyword support in REPL.
83+
84+
7785
### `--experimental-vm-modules`
7886
<!-- YAML
7987
added: v9.6.0

doc/api/repl.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Error: foo
181181

182182
#### `await` keyword
183183

184-
With the `--experimental-repl-await` command line option specified,
184+
With the [`--experimental-repl-await`][] command line option specified,
185185
experimental support for the `await` keyword is enabled.
186186

187187
<!-- eslint-skip -->
@@ -612,6 +612,7 @@ a `net.Server` and `net.Socket` instance, see: https://gist.github.com/2209310
612612
For an example of running a REPL instance over [curl(1)][],
613613
see: https://gist.github.com/2053342
614614

615+
[`--experimental-repl-await`]: cli.html#cli_experimental_repl_await
615616
[`readline.InterfaceCompleter`]: readline.html#readline_use_of_the_completer_function
616617
[`readline.Interface`]: readline.html#readline_class_interface
617618
[`util.inspect()`]: util.html#util_util_inspect_object_options

doc/node.1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ Requires Node.js to be built with
8383
.It Fl \-experimental-modules
8484
Enable experimental ES module support and caching modules.
8585
.
86+
.It Fl \-experimental-repl-await
87+
Enable experimental top-level
88+
.Sy await
89+
keyword support in REPL.
90+
.
8691
.It Fl \-experimental-vm-modules
8792
Enable experimental ES module support in VM module.
8893
.

0 commit comments

Comments
 (0)