diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-10-19 02:24:06 +0200 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-22 13:51:45 -0500 |
commit | 2dc70657a33d19e67fb8db4de4169a11371c5763 (patch) | |
tree | 325f2e2c8714a5591ccd110f76f42b4605f11deb /src/node_worker.cc | |
parent | 45efe67a84d382fed3c86d56f56beffc6bb0a136 (diff) | |
download | android-node-v8-2dc70657a33d19e67fb8db4de4169a11371c5763.tar.gz android-node-v8-2dc70657a33d19e67fb8db4de4169a11371c5763.tar.bz2 android-node-v8-2dc70657a33d19e67fb8db4de4169a11371c5763.zip |
src: make implementing CancelPendingDelayedTasks for platform optional
Fold `CancelPendingDelayedTasks()` into `UnregisterIsolate()` and
make implementing it optional.
It makes sense for these two operations to happen at the same time,
so it is sufficient to provide a single operation instead of two
separate ones.
PR-URL: https://github.com/nodejs/node/pull/30034
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r-- | src/node_worker.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc index 20b162bd81..025b5fed49 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -148,8 +148,6 @@ class WorkerThreadData { w_->isolate_ = nullptr; } - w_->platform_->CancelPendingDelayedTasks(isolate); - bool platform_finished = false; isolate_data_.reset(); |