ECMAScript arguments implementation has been updated

Published: | Categories: JavaScript

Description

As part of the ECMAScript 2015 (ES6) compliance, arrow functions no longer have their own arguments. The arguments object will rather be inherited from the outer function if any. The rest parameter syntax can be used to access the actual arguments of arrow functions.

Also, starting with Firefox 43, a mapped arguments object will be provided only when the code is in the non-strict mode and the function doesn’t have any rest parameters, default parameters or destructured parameters. See an example on the MDC document.

References