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 66e70d3 commit c395b21Copy full SHA for c395b21
lib/internal/repl/await.js
@@ -107,7 +107,7 @@ function processTopLevelAwait(src) {
107
try {
108
root = parser.parse(wrapped, { ecmaVersion: 'latest' });
109
} catch (e) {
110
- if (e.message.startsWith('Unterminated '))
+ if (StringPrototypeStartsWith(e.message, 'Unterminated '))
111
throw new Recoverable(e);
112
// If the parse error is before the first "await", then use the execution
113
// error. Otherwise we must emit this parse error, making it look like a
0 commit comments