Skip to content

Commit

Permalink
fix: type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeci committed Feb 2, 2021
1 parent 30ab283 commit cebc85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/path/introspection.ts
Expand Up @@ -401,7 +401,7 @@ export function _guessExecutionStatusRelativeToDifferentFunctions(
// a. not called at all (part of an export)
// b. called directly
const bindingName = targetIsGenericFunctionExpression
? (target.parent as t.VariableDeclarator).id.name
? ((target.parent as t.VariableDeclarator).id as t.Identifier).name
: (target.node as t.FunctionDeclaration).id.name;
const binding = target.scope.getBinding(bindingName);

Expand Down

0 comments on commit cebc85b

Please sign in to comment.