Raise errors in development mode on deprecation

We've had quite some time to find the deprecation errors in Ember and
most should be fixed. It is time to turn up the difficulty, which will
raise exceptions in development/test mode if a deprecation is present.
This will force developers to fix them as they encounter them.
This commit is contained in:
Robin Ward 2015-08-04 13:22:36 -04:00
parent 64dd28d885
commit 59cdde330f

View file

@ -24,6 +24,12 @@
<% end %>
window.onerror(e && e.message, null,null,null,e);
});
<% if Rails.env.development? || Rails.env.test? %>
Ember.ENV.RAISE_ON_DEPRECATION = true
Ember.LOG_STACKTRACE_ON_DEPRECATION = true
<% end %>
</script>
<script>