archives

« Bugzilla Issues Index

#3587 — Clarification needed in 14.2.17 (arrow functions)


The note says:

> Any reference to `arguments`, `super`, or `this` within an ArrowFunction are resolved to their bindings in the lexically enclosing function.

But arrow functions can also be directly contained in global or module code. So it should probably be "... in the lexically enclosing environment" or similar.


fixed in rev32 editor's draft:

The updated text:

NOTE An ArrowFunction does not define local bindings for arguments, super, or this. Any reference to arguments, super, or this within an ArrowFunction must resolve to a binding in a lexically enclosing environment. Typically this will be the Function Envionment of an immediately enclosing function. ...(unchanged)


fixed in rev32 draft