doc: update error message of example in repl

Error message in document is different from actual result.

PR-URL: https://github.com/nodejs/node/pull/45920
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Deokjin Kim authored and RafaelGSS committed 2023-01-05 13:11:36 -03:00
1 parent d8b5b7da75
commit eaf6b63637
1 file changed
+3 -3
+3 -3
View File
@@ -212,7 +212,7 @@ Explicitly setting `_error` to a value will disable this behavior.
```console
> throw new Error('foo');
Error: foo
Uncaught Error: foo
> _error.message
'foo'
```
@@ -225,8 +225,8 @@ Support for the `await` keyword is enabled at the top level.
> await Promise.resolve(123)
123
> await Promise.reject(new Error('REPL await'))
Error: REPL await
at repl:1:45
Uncaught Error: REPL await
at REPL2:1:54
> const timeout = util.promisify(setTimeout);
undefined
> const old = Date.now(); await timeout(1000); console.log(Date.now() - old);