repl: fix tab-complete warning
When create a nest repl, will register Runtime.executionContextCreated
listener to the inspector session.This patch will fix listener
repeatedly register.
Fixes: https://github.com/nodejs/node/issues/18284
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
repl