Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[FEATURE ember-metal-warn-on-undefined-get] #9950
I am not in favor of this. There are legitimate use cases for getting a property that is
In a larger app, turning this on is going to generate many, many warnings.
I think a better approach is probably a computed property macro that just throws an exception when it's retrieved (indicating that it had never been set). Alternatively you can implement
In general, there is a very high barrier to entry to adding new flags, especially if they are purely for debugging purposes. If there is a common problem people need to debug, I would much rather put time and energy into better debugging tools in the inspector than an esoteric flag that only pro users know to turn on and use.
If you really want this kind of checking, you could get it in a more focused way by only extending the object that your own code is directly interacting with.
For example, if it's template usage that you're concerned about, extend all your Controllers & Components with an