From eaf6b63637dda69e5f7a3a2d2e143f78dfd5335b Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Sun, 25 Dec 2022 05:09:54 +0900 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca --- doc/api/repl.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 1d216c4358fcd4..56828dc78670cf 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -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);