-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
From 9.2.13 of the ES6 Spec Draft:
a. NOTE Arrow functions never have an arguments objects.
In fact, we should be capturing arguments
from the first containing function expression and error if there is none. The correct emit for something like
function f() {
return () => arguments;
}
would be the following:
function f() {
var _arguments = arguments;
return () => _arguments;
}
Metadata
Metadata
Assignees
Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue