File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -5755,8 +5755,8 @@ namespace ts {
5755
5755
// will be bound to non-arrow function that contain this arrow function. This results in inconsistent behavior.
5756
5756
// To avoid that we will give an error to users if they use arguments objects in arrow function so that they
5757
5757
// can explicitly bound arguments objects
5758
- let container = getContainingFunction(node);
5759
5758
if (symbol === argumentsSymbol) {
5759
+ let container = getContainingFunction(node);
5760
5760
if (container.kind === SyntaxKind.ArrowFunction) {
5761
5761
if (languageVersion < ScriptTarget.ES6) {
5762
5762
error(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression);
You can’t perform that action at this time.
0 commit comments