repl: improve REPL disabling completion on proxies and getters · nodejs/node@3a3eb68 · GitHub
Skip to content

Commit 3a3eb68

Browse files
dario-piotrowicztargos
authored andcommitted
repl: improve REPL disabling completion on proxies and getters
#57909 introduced the disabling of REPL tab completion on object containing proxies and getters (since such completion triggers code evaluation which can be unexpected/disruptive for the user) the solution in 57909 did not address all possible such cases, the changes here improve on such solution by using acorn and AST analysis to cover most if not all possible cases PR-URL: #58891 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 515b581 commit 3a3eb68

2 files changed

Lines changed: 223 additions & 28 deletions

File tree

lib/repl.js

Lines changed: 159 additions & 19 deletions

test/parallel/test-repl-completion-on-getters-disabled.js

Lines changed: 64 additions & 9 deletions

0 commit comments

Comments
 (0)