summaryrefslogtreecommitdiff
path: root/cli/tsc
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-12-02 23:17:02 +0100
committerGitHub <noreply@github.com>2022-12-02 23:17:02 +0100
commite2a0c3f0dcadd06b2afa5c7128b7e7ec18818557 (patch)
tree674cf3facea2437361d7617d71ec5830ed9e9c19 /cli/tsc
parent868068c8474040cad4b0742e54809580d00c36f6 (diff)
fix(inspector): allow to poll session with reentry (#16863)
This commit completely rewrites inspector session polling. Until now, there was a single function responsible for polling inspector sessions which could have been called when polling the "JsRuntime" as well as from internal inspector functions. There are some cases where it's required to have reentrant polling of sessions (eg. when "debugger" statement is run) which should be blocking until inspector sends appropriate message to continue execution. This was not possible before, because polling of sessions didn't have reentry ability. As a consequence, session polling was split into two separate functions: a) one to be used when polling from async context (on each tick of event loop in "JsRuntime") b) one to be used when polling synchronously and potentially blocking (used by various inspector methods). There are further cleanups and simplifications to be made in inspector code, but this rewrite solves the problem at hand (being able to evaluate "debugger" JS statement and continue inspector functionality). Co-authored-by: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'cli/tsc')
0 files changed, 0 insertions, 0 deletions