EmberJS:一些错误不会在生产中抛出

EmberJS: Some errors not thrown in production

最近我遇到了这样一种情况,当我的应用程序 运行 在开发模式下抛出错误 (Assertion Failed: calling set on destroyed object),但在生产环境中没有抛出同样的错误。

为什么会这样?有理由吗? 如果我遗漏了,我还应该知道生产模式和开发模式之间的其他区别吗?

Assertions are removed from production builds。所有 "assertion failed" 错误都应在开发过程中解决。此外,生产版本通常会被缩小和指纹识别。