We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb4abe commit b99312aCopy full SHA for b99312a
jscomp/core/js_analyzer.ml
@@ -103,7 +103,8 @@ let rec no_side_effect_expression_desc (x : J.expression_desc) =
103
| String_append (a, b) | Seq (a, b) -> no_side_effect a && no_side_effect b
104
| Length (e, _) | Caml_block_tag (e, _) | Typeof e -> no_side_effect e
105
| Bin (op, a, b) -> op <> Eq && no_side_effect a && no_side_effect b
106
- | Tagged_template (_call_expr, _strings, values) -> Ext_list.for_all values no_side_effect
+ | Tagged_template (call_expr, strings, values) -> no_side_effect call_expr &&
107
+ Ext_list.for_all strings no_side_effect && Ext_list.for_all values no_side_effect
108
| Js_not _ | Cond _ | FlatCall _ | Call _ | New _ | Raw_js_code _
109
(* actually true? *) ->
110
false
0 commit comments