Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.
This repository was archived by the owner on May 18, 2024. It is now read-only.

In case of polyfill, reviver function should be called in the holder context #5

@zloirock

Description

@zloirock

Now it does not work with this polyfill, however, it's one of the key moments of ES JSON implementation:

JSON.parse('{"a":1}', function (key, val) { this.b = 2; return val; }); // => { a: 1, b: 2}

Like in #4, for implementing this, JSON should be parsed before calling reviver function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions