File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
crates/oxc_ecmascript/src/constant_evaluation Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,12 @@ fn try_fold_url_related_function<'a>(
3131 ctx : & impl ConstantEvaluationCtx < ' a > ,
3232) -> Option < ConstantValue < ' a > > {
3333 match ident. name . as_str ( ) {
34- "encodeURI" if ctx. is_global_reference ( ident) == Some ( true ) => {
35- try_fold_encode_uri ( arguments, ctx)
36- }
37- "encodeURIComponent" if ctx. is_global_reference ( ident) == Some ( true ) => {
34+ "encodeURI" if ctx. is_global_reference ( ident) => try_fold_encode_uri ( arguments, ctx) ,
35+ "encodeURIComponent" if ctx. is_global_reference ( ident) => {
3836 try_fold_encode_uri_component ( arguments, ctx)
3937 }
40- "decodeURI" if ctx. is_global_reference ( ident) == Some ( true ) => {
41- try_fold_decode_uri ( arguments, ctx)
42- }
43- "decodeURIComponent" if ctx. is_global_reference ( ident) == Some ( true ) => {
38+ "decodeURI" if ctx. is_global_reference ( ident) => try_fold_decode_uri ( arguments, ctx) ,
39+ "decodeURIComponent" if ctx. is_global_reference ( ident) => {
4440 try_fold_decode_uri_component ( arguments, ctx)
4541 }
4642 _ => None ,
You can’t perform that action at this time.
0 commit comments