closes #5854
@@ -9,6 +9,7 @@ XXXX-XX-XX:
Bugfixes:
+ all : [breaking] `function () { }(e)` is no longer parsed as a call (#5854)
php : Escape `$` in field names of anonymous objects (#7230)
php : Generate `switch` as `if...else if...else...` to avoid loose comparison (#7257)
@@ -1035,7 +1035,7 @@ and parse_function p1 inl = parser
EFunction ((match name with None -> None | Some (name,pn) -> Some ((if inl then "inline_" ^ name else name),pn)),f), punion p1 (pos e)
in
(try
- expr_next (make (secure_expr s)) s
+ make (secure_expr s)
with
Display e -> display (make e))