Skip to content

Commit

Permalink
fix(tasks/compat_data): fix misplaced features (#7284)
Browse files Browse the repository at this point in the history
closes #7279
  • Loading branch information
Boshen authored and Dunqing committed Nov 18, 2024
1 parent 0cb1e6a commit 365d48f
Show file tree
Hide file tree
Showing 5 changed files with 905 additions and 888 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_transformer/src/options/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ impl From<EngineTargets> for EnvOptions {
async_generator_functions: o.has_feature(ES2018AsyncGeneratorFunctions),
},
es2019: ES2019Options {
optional_catch_binding: o.has_feature(ES2018OptionalCatchBinding),
optional_catch_binding: o.has_feature(ES2019OptionalCatchBinding),
},
es2020: ES2020Options {
nullish_coalescing_operator: o.has_feature(ES2020NullishCoalescingOperator),
big_int: o.has_feature(ES2020BigInt),
optional_chaining: o.has_feature(ES2020OptionalChaining),
},
es2021: ES2021Options {
logical_assignment_operators: o.has_feature(ES2020LogicalAssignmentOperators),
logical_assignment_operators: o.has_feature(ES2021LogicalAssignmentOperators),
},
es2022: ES2022Options {
class_static_block: o.has_feature(ES2022ClassStaticBlock),
Expand Down
Loading

0 comments on commit 365d48f

Please sign in to comment.