Validate Bit shift left amount#2485
Conversation
|
Deepak kudi seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
GCHQDeveloper581
left a comment
There was a problem hiding this comment.
(same comment applies to your other PRs #2286 and #2496 - though you will only need to address the CLA issues once)
Please could you sign the CLA (and add email address to your account as per CLA note in comments)
Please could you also add an AI disclosure to the PR description - the template added when raising a PR manually is below - we suggest using this format.
AI disclosure
If you have used any AI tools while creating this code, you must declare your usage along with the name of the tools that you used.
Regardless of AI tool usage, you are responsible for any code that you submit, and we expect you to have checked the code and have enough of an understanding of it to answer any questions we might have.
Summary
Bit shift leftamounts before JavaScript shift coercion can turn them into invalid null-byte output.0so the UI metadata matches the runtime validation.Bit shift left(-1)returning a clear error message.Closes #2482.
Testing
Bit shift left(-1)on inputareturned\u0000.npx grunt configTestsnode --no-warnings --no-deprecation --openssl-legacy-provider --trace-uncaught tests/operations/index.mjsnpm run lintnpm run buildgit diff --check