jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

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

Open ayuan0828 opened this issue 10 months ago • 1 comments

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

ayuan0828 avatar Mar 07 '25 12:03 ayuan0828

please add test cases too.

shreemaan-abhishek avatar Apr 19 '25 14:04 shreemaan-abhishek

Hi @vislee, is there time to continue with this PR?

Baoyuantop avatar Apr 28 '25 06:04 Baoyuantop

I've pushed the fix failed lint CI. Btw, how to run tests locally, Are there docker images?

Hi @vislee, is there time to continue with this PR?

vislee avatar May 24 '25 04:05 vislee

You can refer to https://github.com/apache/apisix/blob/master/docs/en/latest/build-apisix-dev-environment-devcontainers.md

Baoyuantop avatar Jun 16 '25 07:06 Baoyuantop

Hi @vislee, any updates?

Baoyuantop avatar Jul 03 '25 02:07 Baoyuantop

I'll convert this PR to draft first, if the changes are done please request review again.

Baoyuantop avatar Jul 28 '25 07:07 Baoyuantop

This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Sep 26 '25 10:09 github-actions[bot]

This pull request/issue has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

github-actions[bot] avatar Oct 24 '25 10:10 github-actions[bot]

The issue described in this PR has been fixed in https://github.com/apache/apisix/pull/12530. If you still have problems, please submit an issue.

Baoyuantop avatar Oct 27 '25 03:10 Baoyuantop