ceylon/ceylon-js — comment on commit 6c40daa2262dfdf698cdf67963eead4b26798dd1
File:  line 0
By chochos:

The problem is that the anonymous function is generated incorrectly, since the parens for `f()` are added outside this method, that's why it was failing; the generated code was something like `function($){return $!==null?$.f:null}(object)()` instead of `function($){return $!==null?$.f():null}(object)`. I don't know which code adds those parens at the end, to call it before adding `:null}` and omit the call after `(object)`.