Skip to content

Commit

Permalink
fix(ast): fix JSON serialization of BindingPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jun 23, 2024
1 parent 777f12b commit e61741c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/ast/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ pub struct DebuggerStatement {
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[cfg_attr(feature = "serialize", serde(rename_all = "camelCase"))]
pub struct BindingPattern<'a> {
#[cfg_attr(feature = "serialize", serde(flatten))]
#[cfg_attr(feature = "serialize", serde(skip))]
pub span: Span,
// serde(flatten) the attributes because estree has no `BindingPattern`
#[cfg_attr(feature = "serialize", serde(flatten))]
Expand Down

0 comments on commit e61741c

Please sign in to comment.