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 96781d6 commit b75ad06Copy full SHA for b75ad06
lib/internal/repl/await.js
@@ -95,7 +95,7 @@ function processTopLevelAwait(src) {
95
try {
96
root = parser.parse(wrapped, { ecmaVersion: 'latest' });
97
} catch (e) {
98
- if (e.message.startsWith('Unterminated '))
+ if (StringPrototypeStartsWith(e.message, 'Unterminated '))
99
throw new Recoverable(e);
100
// If the parse error is before the first "await", then use the execution
101
// error. Otherwise we must emit this parse error, making it look like a
0 commit comments