emberjs/ember.js — pull request #9395 by rwjblue (2014-10-26 16:04:43+00:00)
Title: [WIP] Add a assertion when watched props are are written to without Em.set.

If a property that is being watched (but was not available on the object at the time the watching was setup) is set directly (without `Ember.set`), no assertion will be fired and any `Ember.get`'s on that property will return `undefined` (see [explanation](https://github.com/emberjs/ember.js/issues/9387#issuecomment-60487275)). This PR adds an assertion to provide a path forward (basically use `Ember.set`).

Closes #9387.

This is still a WIP, as it fails a [single test](https://github.com/rwjblue/ember.js/blob/provide-assertion-when-setting-watched-property/packages/ember-runtime/tests/system/object/destroy_test.js#L75) that is actually relying on this behavior (setting a plain prop). Would love input on that test to see if it is possible to maintain its intent while refactoring to allow this PR/assertion.