We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This test verifies compliance with ECMA-262 requirements on URIError handling. I thought maybe this test case could be added to the test case set?
assert.throws( URIError, function() { decodeURIComponent('%ED%BF%BF'); }, 'Invalid UTF-8 sequence %ED%BF%BF should trigger URIError' );
Expected behavior: Throw URIError XS Engine behavior ([Issue #1464](Moddable-OpenSource/moddable#1464)): Returns string "���"
The text was updated successfully, but these errors were encountered:
Thanks! Please feel free to open a PR with that test case. We probably need a similar one for decodeURI as well.
decodeURI
You could also consider including several types of bad UTF-8 data as detailed in this Stackoverflow post: https://stackoverflow.com/a/1319229/172999
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Testcase
Output
Expected behavior: Throw URIError
XS Engine behavior ([Issue #1464](Moddable-OpenSource/moddable#1464)): Returns string "���"
The text was updated successfully, but these errors were encountered: