```js
var ctx = {
  foo: 1,
  bar: function() {
  	ctx.resolve = 4;
  }
 };

ctx.bar();
ctx.resolve;  // 4
```
But its also ok as is.