summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2019-05-25 18:07:32 +0200
committerMichaël Zasso <targos@protonmail.com>2019-05-31 08:46:57 +0200
commitd406785814382c9822574deb14935da592902b87 (patch)
treedf21138a0eb502c8fa5f737af6845c977c7d3e05 /src
parent0d741981231a237c03311238a06eac1550a4c57a (diff)
downloadnode-new-d406785814382c9822574deb14935da592902b87.tar.gz
src: unimplement deprecated v8-platform methods
This removes the implementations of NodePlatform::CallOnForegroundThread and NodePlatform::CallDelayedOnForegroundThread and updates the test_platform cctest to stop using them. PR-URL: https://github.com/nodejs/node/pull/27872 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_platform.cc11
-rw-r--r--src/node_platform.h11
2 files changed, 8 insertions, 14 deletions
diff --git a/src/node_platform.cc b/src/node_platform.cc
index 406146b841..b2e8d77ec7 100644
--- a/src/node_platform.cc
+++ b/src/node_platform.cc
@@ -445,17 +445,6 @@ NodePlatform::ForIsolate(Isolate* isolate) {
return data;
}
-void NodePlatform::CallOnForegroundThread(Isolate* isolate, Task* task) {
- ForIsolate(isolate)->PostTask(std::unique_ptr<Task>(task));
-}
-
-void NodePlatform::CallDelayedOnForegroundThread(Isolate* isolate,
- Task* task,
- double delay_in_seconds) {
- ForIsolate(isolate)->PostDelayedTask(
- std::unique_ptr<Task>(task), delay_in_seconds);
-}
-
bool NodePlatform::FlushForegroundTasks(Isolate* isolate) {
return ForIsolate(isolate)->FlushForegroundTasksInternal();
}
diff --git a/src/node_platform.h b/src/node_platform.h
index 66f86cfa7e..d2eb325c12 100644
--- a/src/node_platform.h
+++ b/src/node_platform.h
@@ -145,9 +145,14 @@ class NodePlatform : public MultiIsolatePlatform {
void CallOnWorkerThread(std::unique_ptr<v8::Task> task) override;
void CallDelayedOnWorkerThread(std::unique_ptr<v8::Task> task,
double delay_in_seconds) override;
- void CallOnForegroundThread(v8::Isolate* isolate, v8::Task* task) override;
- void CallDelayedOnForegroundThread(v8::Isolate* isolate, v8::Task* task,
- double delay_in_seconds) override;
+ void CallOnForegroundThread(v8::Isolate* isolate, v8::Task* task) override {
+ UNREACHABLE();
+ }
+ void CallDelayedOnForegroundThread(v8::Isolate* isolate,
+ v8::Task* task,
+ double delay_in_seconds) override {
+ UNREACHABLE();
+ }
bool IdleTasksEnabled(v8::Isolate* isolate) override;
double MonotonicallyIncreasingTime() override;
double CurrentClockTimeMillis() override;