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
36becec
When executing code containing the String.prototype.replaceAll method, a TypeError: Object doesn't support property or method 'replaceAll' occurs.
String.prototype.replaceAll
TypeError: Object doesn't support property or method 'replaceAll'
var replaceWith = function (inputStr) { return inputStr.replaceAll('a', 'b'); }; var originalStr = 'Y)a,K;aC&.'; var modifiedStr = replaceWith(originalStr); print(modifiedStr);
TypeError: Object doesn't support property or method 'replaceAll' at replaceWith (/home/test.js:2:5) at Global code (/home/test.js:5:1)
No response
The text was updated successfully, but these errors were encountered:
@ayuan0828 , works perfectly fine when I use the same code in console. Please attach a screenshot on when you are facing the issues.
Sorry, something went wrong.
Here's a screenshot of my execution, and I'm very confused.
@ayuan0828 then its might be that originalStr is not a string but an object which is getting sent.
The function "matchAll" is the same case, maybe for the same reason?
No branches or pull requests
ChakraCore Version
36becec
Steps to reproduce
When executing code containing the
String.prototype.replaceAll
method, aTypeError: Object doesn't support property or method 'replaceAll'
occurs.Proof of concept
Exception or Error
Additional Context
No response
The text was updated successfully, but these errors were encountered: