Skip to content

Commit 28a97ff

Browse files
committed
typo
1 parent fb5a3cb commit 28a97ff

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

crates/swc_ecma_compat_es2016/src/exponentiation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use swc_ecma_ast::*;
2121
/// ```
2222
pub fn exponentiation() -> impl Pass {
2323
let mut options = swc_ecma_transformer::Options::default();
24-
options.env.es2016.exponentation_operator = true;
24+
options.env.es2016.exponentiation_operator = true;
2525
options.into_pass()
2626
}
2727

crates/swc_ecma_preset_env/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ where
208208

209209
// ES2016
210210
if !caniuse(Feature::ExponentiationOperator) {
211-
options.env.es2016.exponentation_operator = true;
211+
options.env.es2016.exponentiation_operator = true;
212212
}
213213

214214
// ES2015

crates/swc_ecma_transformer/src/es2016/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
mod exponentation_operator;
2-
31
use swc_ecma_hooks::VisitMutHook;
42

53
use crate::{hook_utils::OptionalHook, TraverseCtx};
64

5+
mod exponentiation_operator;
6+
77
#[derive(Debug, Default)]
88
#[non_exhaustive]
99
pub struct Es2016Options {
10-
pub exponentation_operator: bool,
10+
pub exponentiation_operator: bool,
1111
}
1212

1313
pub fn hook(options: Es2016Options) -> impl VisitMutHook<TraverseCtx> {
14-
OptionalHook(if options.exponentation_operator {
15-
Some(self::exponentation_operator::hook())
14+
OptionalHook(if options.exponentiation_operator {
15+
Some(self::exponentiation_operator::hook())
1616
} else {
1717
None
1818
})

0 commit comments

Comments
 (0)