An abnormal output occurs when the String.fromCharCode method is called
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
please add test cases too.
Hi @vislee, is there time to continue with this PR?
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?
You can refer to https://github.com/apache/apisix/blob/master/docs/en/latest/build-apisix-dev-environment-devcontainers.md
Hi @vislee, any updates?
I'll convert this PR to draft first, if the changes are done please request review again.
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.
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.
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.