doc: fully document --experimental-repl-await
PR-URL: https://github.com/nodejs/node/pull/20133 Fixes: https://github.com/nodejs/node/pull/19604#issuecomment-382427090 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
52491529ba
commit
ceab78f9d8
@ -74,6 +74,14 @@ added: v8.5.0
|
|||||||
Enable experimental ES module support and caching modules.
|
Enable experimental ES module support and caching modules.
|
||||||
|
|
||||||
|
|
||||||
|
### `--experimental-repl-await`
|
||||||
|
<!-- YAML
|
||||||
|
added: REPLACEME
|
||||||
|
-->
|
||||||
|
|
||||||
|
Enable experimental top-level `await` keyword support in REPL.
|
||||||
|
|
||||||
|
|
||||||
### `--experimental-vm-modules`
|
### `--experimental-vm-modules`
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v9.6.0
|
added: v9.6.0
|
||||||
|
@ -181,7 +181,7 @@ Error: foo
|
|||||||
|
|
||||||
#### `await` keyword
|
#### `await` keyword
|
||||||
|
|
||||||
With the `--experimental-repl-await` command line option specified,
|
With the [`--experimental-repl-await`][] command line option specified,
|
||||||
experimental support for the `await` keyword is enabled.
|
experimental support for the `await` keyword is enabled.
|
||||||
|
|
||||||
<!-- eslint-skip -->
|
<!-- eslint-skip -->
|
||||||
@ -612,6 +612,7 @@ a `net.Server` and `net.Socket` instance, see: https://gist.github.com/2209310
|
|||||||
For an example of running a REPL instance over [curl(1)][],
|
For an example of running a REPL instance over [curl(1)][],
|
||||||
see: https://gist.github.com/2053342
|
see: https://gist.github.com/2053342
|
||||||
|
|
||||||
|
[`--experimental-repl-await`]: cli.html#cli_experimental_repl_await
|
||||||
[`readline.InterfaceCompleter`]: readline.html#readline_use_of_the_completer_function
|
[`readline.InterfaceCompleter`]: readline.html#readline_use_of_the_completer_function
|
||||||
[`readline.Interface`]: readline.html#readline_class_interface
|
[`readline.Interface`]: readline.html#readline_class_interface
|
||||||
[`util.inspect()`]: util.html#util_util_inspect_object_options
|
[`util.inspect()`]: util.html#util_util_inspect_object_options
|
||||||
|
@ -83,6 +83,11 @@ Requires Node.js to be built with
|
|||||||
.It Fl \-experimental-modules
|
.It Fl \-experimental-modules
|
||||||
Enable experimental ES module support and caching modules.
|
Enable experimental ES module support and caching modules.
|
||||||
.
|
.
|
||||||
|
.It Fl \-experimental-repl-await
|
||||||
|
Enable experimental top-level
|
||||||
|
.Sy await
|
||||||
|
keyword support in REPL.
|
||||||
|
.
|
||||||
.It Fl \-experimental-vm-modules
|
.It Fl \-experimental-vm-modules
|
||||||
Enable experimental ES module support in VM module.
|
Enable experimental ES module support in VM module.
|
||||||
.
|
.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user