Repository navigation
Commit 6e0de9e
committed
fix(compiler): unwrap ParenthesizedExpression in dom-bindings isDirective
The formatter rewrote `'use dom bindings'` to `('use dom bindings')`,
wrapping the string literal in a ParenthesizedExpression. isDirective
checked `node.expression.value` directly, which is undefined on a
ParenthesizedExpression node. Use the existing `unwrap()` helper to
peel type-assertion and parenthesized wrappers before reading .value.1 parent 06d92dc commit 6e0de9e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
0 commit comments