diff --git a/src/node_worker.cc b/src/node_worker.cc index 15dea5c501b101..43a3862cc69dc3 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -150,9 +150,7 @@ class WorkerThreadData { Isolate* isolate = Isolate::Allocate(); if (isolate == nullptr) { - // TODO(addaleax): This should be ERR_WORKER_INIT_FAILED, - // ERR_WORKER_OUT_OF_MEMORY is for reaching the per-Worker heap limit. - w->Exit(1, "ERR_WORKER_OUT_OF_MEMORY", "Failed to create new Isolate"); + w->Exit(1, "ERR_WORKER_INIT_FAILED", "Failed to create new Isolate"); return; } @@ -298,9 +296,7 @@ void Worker::Run() { TryCatch try_catch(isolate_); context = NewContext(isolate_); if (context.IsEmpty()) { - // TODO(addaleax): This should be ERR_WORKER_INIT_FAILED, - // ERR_WORKER_OUT_OF_MEMORY is for reaching the per-Worker heap limit. - Exit(1, "ERR_WORKER_OUT_OF_MEMORY", "Failed to create new Context"); + Exit(1, "ERR_WORKER_INIT_FAILED", "Failed to create new Context"); return; } }