We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ef397e commit fd0ff34Copy full SHA for fd0ff34
1 file changed
src/compiler/checker.ts
@@ -382,7 +382,7 @@ module ts {
382
if (getSymbol(ctor.locals, name, meaning & SymbolFlags.Value)) {
383
// Remember the property node, it will be used later to report appropriate error
384
propertyWithInvalidInitializer = location;
385
- }
+ }
386
}
387
388
break;
@@ -504,6 +504,9 @@ module ts {
504
505
506
if (argumentsUsedInArrowFunction) {
507
+ // At this point we've resolved the owner of 'arguments' and know it needs to be captured.
508
+ // Flag the owner to indicate that it will need to capture at emit-time.
509
+ // If we were resolved in the global scope, use 'lastLocation' as 'location' will be undefined.
510
getNodeLinks(location || lastLocation).flags |= NodeCheckFlags.CaptureArguments;
511
512
0 commit comments