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
A "silent" const is a function expression name which cannot be assigned to, but which doesn't throw an error when assigned to in sloppy mode code.
These are handled correctly in functions. e.g.:
// Sloppy mode module.exports = function f() { f = console.log('hello!'); };
Output:
module.exports = function f() { console.log('hello!'); // `f =` assignment removed };
However, while writing fix for #528, I realised there are no tests for this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A "silent" const is a function expression name which cannot be assigned to, but which doesn't throw an error when assigned to in sloppy mode code.
These are handled correctly in functions. e.g.:
Output:
However, while writing fix for #528, I realised there are no tests for this.
The text was updated successfully, but these errors were encountered: