For AI agents: the complete documentation index is available at /tc39-atlas/en/llms.txt, the full documentation bundle is available at /tc39-atlas/en/llms-full.txt, and this page is available as Markdown at /tc39-atlas/en/proposals/year/pending/callable-class-constructors.md.
  • English
  • Callable class constructors ?

    Proposal details
    Proposal overview

    This proposal aims to allow class constructors to be called without the new keyword, enabling classes to behave like traditional functions. The current content is just the standard ECMAScript specification repository boilerplate, which does not yet include the proposal's specific details. Its maturity is uncertain; it appears to be in early exploration stages.

    Note

    The README below comes from the upstream repository and may contain outdated stage or status metadata. Use the proposal details above as the current source of truth.

    ECMAScript

    This repo

    This repository contains the source for the current draft of ECMA-262, the ECMAScript® Language Specification.

    This source is processed to obtain a human-readable version, which you can view here.

    If you want to explore how the specification was written, you can also view the source with its history in searchfox.

    Current Proposals

    Proposals follow the TC39 process and are tracked in the proposals repository.

    Contributing New Proposals

    Please see Contributing to ECMAScript for the most up-to-date information on contributing proposals to this standard.

    Developing the Specification

    After cloning, do npm install to set up your environment. You can then do npm run build to build the spec or npm run watch to set up a continuous build. The results will appear in the out directory, which you can use npm run clean to delete.

    Community