use strict can no longer be used in function with non-simple parameters

Published: | Categories: JavaScript

Description

According to the ECMAScript 2016 spec, the "use strict"; statement that invokes strict mode cannot be used in a function with default parameters or rest parameters. Firefox 52 and later will throw a SyntaxError for such cases. Since Google Chrome and Microsoft Edge have already made the change, the compatibility impact should be minimum.

References