We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 668e201 commit 49b2acbCopy full SHA for 49b2acb
lib/internal/repl/await.js
@@ -110,11 +110,9 @@ function processTopLevelAwait(src) {
110
// Convert keyword parse errors on await into their original errors when
111
// possible.
112
if (errPos === awaitPos + 6 &&
113
- src.slice(errPos - 6, errPos - 1) === 'await' &&
114
e.message.includes('Expecting Unicode escape sequence'))
115
return null;
116
if (errPos === awaitPos + 7 &&
117
- src.slice(errPos - 7, errPos - 2) === 'await' &&
118
e.message.includes('Unexpected token'))
119
120
const { line, column } = e.loc;
0 commit comments