this-as unexpectedly binds js/window when used within function with post-condition

Description

Adding a post-condition to any function that uses cljs.core/this-as will unexpectedly cause this-as's "this" symbol to be bound to the root object (e.g., js/window) instead.

Environment

None

Activity

Show:
David Nolen
March 16, 2015, 12:17 PM

This is almost certainly a different manifestation of CLJS-719.

Thomas Heller
March 16, 2015, 12:21 PM

Just looked at the generated javascript. As David mentioned the problem is the extra function generated to get the result for the ost condition.

Assignee

Unassigned

Reporter

import

Labels

None

Approval

None

Patch

None

Priority

Minor
Configure