Skip to content

Commit 9bd517e

Browse files
committed
[squash] UNREACHABLE(); all the things
1 parent 2cd135b commit 9bd517e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/node_platform.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ void BackgroundTaskRunner::PostTask(std::unique_ptr<Task> task) {
3838
}
3939

4040
void BackgroundTaskRunner::PostIdleTask(std::unique_ptr<v8::IdleTask> task) {
41-
CHECK(false && "idle tasks not enabled");
41+
UNREACHABLE();
4242
}
4343

4444
void BackgroundTaskRunner::PostDelayedTask(std::unique_ptr<v8::Task> task,
4545
double delay_in_seconds) {
46-
// It's unclear whether this is required at all for background tasks.
47-
PostTask(std::move(task));
46+
UNREACHABLE();
4847
}
4948

5049
void BackgroundTaskRunner::BlockingDrain() {
@@ -77,7 +76,7 @@ void PerIsolatePlatformData::FlushTasks(uv_async_t* handle) {
7776
}
7877

7978
void PerIsolatePlatformData::PostIdleTask(std::unique_ptr<v8::IdleTask> task) {
80-
CHECK(false && "idle tasks not enabled");
79+
UNREACHABLE();
8180
}
8281

8382
void PerIsolatePlatformData::PostTask(std::unique_ptr<Task> task) {

0 commit comments

Comments
 (0)