Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! fixup! repl: hide top-level await feature behind a flag
  • Loading branch information
TimothyGu committed Apr 14, 2018
commit 45d2205d133aafdc61665eeba0a4234931795962
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function REPLServer(prompt,

if (experimentalREPLAwait && code.includes('await')) {
if (processTopLevelAwait === undefined) {
;({ processTopLevelAwait } = require('internal/repl/await'));
({ processTopLevelAwait } = require('internal/repl/await'));
}

const potentialWrappedCode = processTopLevelAwait(code);
Expand Down