File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -191,9 +191,9 @@ experimental support for the `await` keyword is enabled.
191
191
> await Promise .reject (new Error (' REPL await' ))
192
192
Error : REPL await
193
193
at repl: 1 : 45
194
- > timeout = util .promisify (setTimeout)
194
+ > const timeout = util .promisify (setTimeout)
195
195
[Function ]
196
- > old = Date .now (); await timeout (1000 ); console .log (Date .now () - old);
196
+ > const old = Date .now (); await timeout (1000 ); console .log (Date .now () - old);
197
197
1002
198
198
undefined
199
199
```
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ function REPLServer(prompt,
231
231
232
232
if ( experimentalREPLAwait && code . includes ( 'await' ) ) {
233
233
if ( processTopLevelAwait === undefined )
234
- ( { processTopLevelAwait } = require ( 'internal/repl/await' ) ) ;
234
+ ; ( { processTopLevelAwait } = require ( 'internal/repl/await' ) ) ;
235
235
236
236
const potentialWrappedCode = processTopLevelAwait ( code ) ;
237
237
if ( potentialWrappedCode !== null ) {
You can’t perform that action at this time.
0 commit comments