diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 27803b43526ca..b17fe546f5800 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -2223,9 +2223,9 @@ namespace ts { if (currentFlow) { node.flowNode = currentFlow; } - checkStrictModeFunctionName(node); - const bindingName = (node).name ? (node).name.text : "__function"; - return bindAnonymousDeclaration(node, SymbolFlags.Function, bindingName); + checkStrictModeFunctionName(node); + const bindingName = node.name ? node.name.text : "__function"; + return bindAnonymousDeclaration(node, SymbolFlags.Function, bindingName); } function bindPropertyOrMethodOrAccessor(node: Declaration, symbolFlags: SymbolFlags, symbolExcludes: SymbolFlags) {