diff options
-rw-r--r-- | lib/internal/repl/await.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/repl/await.js b/lib/internal/repl/await.js index 5a26e83557..e0b79805df 100644 --- a/lib/internal/repl/await.js +++ b/lib/internal/repl/await.js @@ -69,7 +69,7 @@ function processTopLevelAwait(src) { let root; try { root = acorn.parse(wrapped, { ecmaVersion: 10 }); - } catch (err) { + } catch { return null; } const body = root.body[0].expression.callee.body; |