Skip to content
Snippets Groups Projects
Commit 02e75df3 authored by Pete Bacon Darwin's avatar Pete Bacon Darwin Committed by atscott
Browse files

refactor(compiler-cli): ensure `isNamed....()` helpers check name is identity (#38959) (#39272)

Previously the `node.name` property was only checked to ensure it was
defined. But that meant that it was a `ts.BindingName`, which also includes
`ts.BindingPattern`, which we do not support. But these helper methods were
forcefully casting the value to `ts.Identifier.

Now we also check that the `node.name` is actually an `ts.Identifier`.

PR Close #38959

PR Close #39272
parent f752ab93
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment