Skip to content

Commit

Permalink
fixup: Update lib/internal/repl/await.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
guybedford and ljharb committed Jun 30, 2021
1 parent 96781d6 commit b75ad06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/repl/await.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function processTopLevelAwait(src) {
try {
root = parser.parse(wrapped, { ecmaVersion: 'latest' });
} catch (e) {
if (e.message.startsWith('Unterminated '))
if (StringPrototypeStartsWith(e.message, 'Unterminated '))
throw new Recoverable(e);
// If the parse error is before the first "await", then use the execution
// error. Otherwise we must emit this parse error, making it look like a
Expand Down

0 comments on commit b75ad06

Please sign in to comment.