diff --git a/lib/internal/repl/await.js b/lib/internal/repl/await.js index 5a26e835574603..e0b79805df049b 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;