Skip to content

Commit b75ad06

Browse files
guybedfordljharb
andcommitted
fixup: Update lib/internal/repl/await.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 96781d6 commit b75ad06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/repl/await.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function processTopLevelAwait(src) {
9595
try {
9696
root = parser.parse(wrapped, { ecmaVersion: 'latest' });
9797
} catch (e) {
98-
if (e.message.startsWith('Unterminated '))
98+
if (StringPrototypeStartsWith(e.message, 'Unterminated '))
9999
throw new Recoverable(e);
100100
// If the parse error is before the first "await", then use the execution
101101
// error. Otherwise we must emit this parse error, making it look like a

0 commit comments

Comments
 (0)