Skip to content

Cluster.isPrimary is undefined #40311

Closed
Closed

Description

@warlock1996

Version

14.17.6

Platform

Windows

Subsystem

No response

What steps will reproduce the bug?

const cluster = require("cluster");

console.log(cluster.isPrimary) // undefined

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Activity

  1. richardlau commented on Oct 4, 2021

    @richardlau
    Member

    This was introduced in a semver-major PR (#36478) so hasn't been backported to Node.js 14.

  2. added
    cluster
    on Oct 4, 2021
  3. warlock1996 commented on Oct 4, 2021

    @warlock1996
    ContributorAuthor

    okay, the documentation for v14.17.6 has this issue

  4. richardlau commented on Oct 4, 2021

    @richardlau
    Member

    Where are you seeing that? https://nodejs.org/dist/v14.17.6/docs/api/cluster.html doesn't list isPrimary, for example.

  5. warlock1996 commented on Oct 4, 2021

    @warlock1996
    ContributorAuthor

    oh sorry, it is correct for the link u provided, i was reading the latest 16.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cluster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions