File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
swc_ecma_compat_es2016/src
swc_ecma_transformer/src/es2016 Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use swc_ecma_ast::*;
2121/// ```
2222pub 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
Original file line number Diff line number Diff 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
File renamed without changes.
Original file line number Diff line number Diff line change 1- mod exponentation_operator;
2-
31use swc_ecma_hooks:: VisitMutHook ;
42
53use crate :: { hook_utils:: OptionalHook , TraverseCtx } ;
64
5+ mod exponentiation_operator;
6+
77#[ derive( Debug , Default ) ]
88#[ non_exhaustive]
99pub struct Es2016Options {
10- pub exponentation_operator : bool ,
10+ pub exponentiation_operator : bool ,
1111}
1212
1313pub 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 } )
You can’t perform that action at this time.
0 commit comments