We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d34916a + efda30c commit fe32282Copy full SHA for fe32282
1 file changed
src/compiler/binder.ts
@@ -2223,9 +2223,9 @@ namespace ts {
2223
if (currentFlow) {
2224
node.flowNode = currentFlow;
2225
}
2226
- checkStrictModeFunctionName(<FunctionExpression>node);
2227
- const bindingName = (<FunctionExpression>node).name ? (<FunctionExpression>node).name.text : "__function";
2228
- return bindAnonymousDeclaration(<FunctionExpression>node, SymbolFlags.Function, bindingName);
+ checkStrictModeFunctionName(node);
+ const bindingName = node.name ? node.name.text : "__function";
+ return bindAnonymousDeclaration(node, SymbolFlags.Function, bindingName);
2229
2230
2231
function bindPropertyOrMethodOrAccessor(node: Declaration, symbolFlags: SymbolFlags, symbolExcludes: SymbolFlags) {
0 commit comments