On Oct 13, 3:24 pm, Rajan Agaskar <
ra...@pivotallabs.com> wrote:
> How about
>
> (function() {
> return (foo = null || 1);
>
> };)()
>
> If we can get it working for you by just enclosing the statement in parens,
> I think that's a win.
Interesting. This works:
return (jasmine.currentEnv_ = jasmine.currentEnv_ || new
jasmine.Env());
From a readability perspective, I prefer the version in my previous
post, as it makes the check implicit, however, it's a matter of style
so I'd be happy with whichever change you feel is best for Jasmine.
Thanks,
James.