Prior to this change, code with template literals inside of require calls would break. This is because the check of t.isLiteral is far too broad for this usage, and assumes that all literals have a value property. Since TemplateLiteral nodes do not, they would cause picomatch to fail on an undefined input.
Prior to this change, code with template literals inside of
require
calls would break. This is because the check oft.isLiteral
is far too broad for this usage, and assumes that all literals have avalue
property. SinceTemplateLiteral
nodes do not, they would causepicomatch
to fail on anundefined
input.