Redeclaration of block-scoped functions has been deprecated

Published: | Categories: JavaScript


Firefox 46 has implemented ES6-compatible block-level functions that behave in the same way as let declarations. It means having same name functions in the same scope will raise a SyntaxError. However, the constraint has been temporarily relaxed due to site compatibility issues, just logging a deprecation warning instead. This transitional measure will be removed in the near future.