Skip to content

An abnormal output occurs when the String.fromCharCode method is called #5226

@ayuan0828

Description

@ayuan0828

Description

When the "string.fromcharcode" method is called, if the argument is assigned to 0, it should output an invisible empty String, but it actually outputs·\0000 .

Version

v3.0.0

Testcase

var str1 = String.fromCharCode(0);
print(str1);

Output

\u0000

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