Overly aggressive removal of call

Description

With https://github.com/clojure/clojurescript/commit/8f38049d543b04b8da55029f140b6577e3ec245a in a situation illustrated below, code gen that previously involved .call has been optimized to avoid .call.

Note elem(attr,kids) in the following:

The previous commit that causes code gen with elem.call(null,attr,kids):

In the downstream Hoplon [1] target test environment, this appears to have differing semantics at runtime, with the elision of .call resulting in an error

[1] https://github.com/hoplon/hoplon/blob/4669838feaeae578ef51bd6d6499104c0bab2cc3/src/hoplon/svg.cljs#L26

Environment

None

Assignee

Unassigned

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major
Configure