Skip to content

Do you plan to support function replacer in JSON.stringify? #266

@ayahito-saji

Description

@ayahito-saji

It seems that js-interpreter currently does not support functions for JSON.stringify replacer.
Are there any plans for support in the future?

ECMAScript 5.1 does support them, as seen at https://262.ecma-international.org/5.1/#sec-15.12.3
For security reasons, it is difficult to make replacer functions native, so a custom implementation of JSON.stringify will be needed to support function replacer in JSON.stringify.
Considering speed, it would be best to use the custom implementation when function replacer is present and use the native implementation when it is not present.

Thank you.

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