FIX: experimental fix to Ember.ENV.EXTEND_PROTOTYPES rare exception (#7133)

FIX: experimental fix to Ember.ENV.EXTEND_PROTOTYPES rare exception (#7133)

diff --git a/vendor/assets/javascripts/i18n-patches.js b/vendor/assets/javascripts/i18n-patches.js
index d764690..61c0a52 100644
--- a/vendor/assets/javascripts/i18n-patches.js
+++ b/vendor/assets/javascripts/i18n-patches.js
@@ -13,7 +13,7 @@
       return oldI18ntoHumanSize.apply(this, [number, options]);
     };
 
-    if (Ember.ENV.EXTEND_PROTOTYPES) {
+    if (Ember.typeOf(String.prototype.w) === "function") {
       String.prototype.i18n = function(options) {
         return I18n.t(String(this), options);
       };

GitHub sha: 02492679

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there:

1 Like