Skip to content

Commit c395b21

Browse files
guybedfordljharb
andauthored
Update lib/internal/repl/await.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 66e70d3 commit c395b21

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
@@ -107,7 +107,7 @@ function processTopLevelAwait(src) {
107107
try {
108108
root = parser.parse(wrapped, { ecmaVersion: 'latest' });
109109
} catch (e) {
110-
if (e.message.startsWith('Unterminated '))
110+
if (StringPrototypeStartsWith(e.message, 'Unterminated '))
111111
throw new Recoverable(e);
112112
// If the parse error is before the first "await", then use the execution
113113
// error. Otherwise we must emit this parse error, making it look like a

0 commit comments

Comments
 (0)