diff --git a/services/common/utils.js b/services/common/utils.js index a5c7a4c08a0..6d7b30b04e8 100644 --- a/services/common/utils.js +++ b/services/common/utils.js @@ -166,9 +166,7 @@ this.CommonUtils = { } // Create a special timer that we can add extra properties - let timer = { - __proto__: Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer), - }; + let timer = Object.create(Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer)); // Provide an easy way to clear out the timer timer.clear = function() {