block expressions inside instance methods should generated code with this bound to the original self for the instance.
class Foo:
_field = 'field'
def getIt():
return { x | return x + _field }
----
function getIt() {
var self = this;
return function (x) { return x + self._field };
}