-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Description
Description
Currently when using REPL for debugging some library's async methods is painful
> asyncTaskThatResolvesNumber();
Promise<pending>
// nodejs repl
> await asyncTaskThatResolvesNumber();
await asyncTaskThatResolvesNumber()
^^^^^
Current workaround is
> asyncTaskThatResolvesNumber().then(console.log)
123
Desired Behaviour
Chrome's console handles the case as follows.
> asyncTaskThatResolvesNumber();
Promise<pending>
// chrome console
> await asyncTaskThatResolvesNumber();
123
It'd be very helpful if we can do that in NodeJs REPL.
bl-ue
Metadata
Metadata
Assignees
Labels
No labels