We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de948b8 + b8efcca commit 48990e7Copy full SHA for 48990e7
src/workerd/jsg/setup.c++
@@ -231,10 +231,8 @@ void IsolateBase::jsgGetMemoryInfo(MemoryTracker& tracker) const {
231
232
void IsolateBase::deferDestruction(Item item) {
233
KJ_REQUIRE_NONNULL(ptr, "tried to defer destruction after V8 isolate was destroyed");
234
- if (queueState != QueueState::ACTIVE) {
235
- KJ_LOG(ERROR, "tried to defer destruction during isolate shutdown", queueState,
236
- kj::getStackTrace());
237
- }
+ KJ_REQUIRE(queueState == QueueState::ACTIVE, "tried to defer destruction during isolate shutdown",
+ queueState);
238
queue.lockExclusive()->push(kj::mv(item));
239
}
240
0 commit comments