diff --git a/compiler/lib/js_traverse.ml b/compiler/lib/js_traverse.ml index 5045882fa3..4636d70011 100644 --- a/compiler/lib/js_traverse.ml +++ b/compiler/lib/js_traverse.ml @@ -1754,7 +1754,10 @@ class simpl = , (Return_statement (Some e1, _), _) , Some (Return_statement (Some e2, _), _) ) -> ( Return_statement - (Some (ECond (cond, e1, e2)), U (*ZZZ Use end of function? *)) + ( Some (ECond (cond, e1, e2)) + , U + (*TODO: it would be better to use the location of the + end of the function, but we can't easily get it. *) ) , loc ) :: rem (* if (e1) v1 = e2 else v1 = e3 --> v1 = e1 ? e2 : e3 *)