Skip to content
This repository was archived by the owner on Dec 28, 2017. It is now read-only.
This repository was archived by the owner on Dec 28, 2017. It is now read-only.

Proposal rejected. #16

@ljharb

Description

@ljharb

In the March 2016 TC39 meeting, I brought this proposal to the committee.

It was thoroughly rejected, for a number of reasons. Primarily, that toJSON is a legacy artifact, and a better approach is to use a custom replacer that, for example, checks [Symbol.toStringTag] and dispatches to appropriate serializations.

In addition, the committee did not want to bless the toJSON approach by adding what would be an incomplete representation - one that would not obviate the need for developers to define their own serialization format and revivification logic.

(tc39/ecma262#506)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions