fix: uv_walk crash on web worker close (#24436)

* fix: uv_walk crash on web worker close

* Use DCHECK_EQ
This commit is contained in:
Shelley Vohr 2020-07-08 11:00:43 -07:00 committed by GitHub
parent 2aeaca6f7b
commit 6cfbee9f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 18 deletions

View file

@ -58,6 +58,8 @@ class NodeBindings {
uv_loop_t* uv_loop() const { return uv_loop_; }
bool in_worker_loop() const { return uv_loop_ == &worker_loop_; }
protected:
explicit NodeBindings(BrowserEnvironment browser_env);