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);