Bug 896756 - Fix strict warnings in xpcshell's head.js. r=jmaher

This commit is contained in:
Mark Banner 2013-07-23 18:31:30 +01:00
parent 5d5c8bf66f
commit d2d508df28
2 changed files with 6 additions and 6 deletions

View File

@ -113,8 +113,8 @@ function _Timer(func, delay) {
}
_Timer.prototype = {
QueryInterface: function(iid) {
if (iid.Equals(Components.interfaces.nsITimerCallback) ||
iid.Equals(Components.interfaces.nsISupports))
if (iid.equals(Components.interfaces.nsITimerCallback) ||
iid.equals(Components.interfaces.nsISupports))
return this;
throw Components.results.NS_ERROR_NO_INTERFACE;
@ -191,7 +191,7 @@ function _dump_exception_stack(stack) {
* @note Idle service is overridden by default. If a test requires it, it will
* have to call do_get_idle() function at least once before use.
*/
_fakeIdleService = {
var _fakeIdleService = {
get registrar() {
delete this.registrar;
return this.registrar =

View File

@ -122,8 +122,8 @@ function _Timer(func, delay) {
}
_Timer.prototype = {
QueryInterface: function(iid) {
if (iid.Equals(Components.interfaces.nsITimerCallback) ||
iid.Equals(Components.interfaces.nsISupports))
if (iid.equals(Components.interfaces.nsITimerCallback) ||
iid.equals(Components.interfaces.nsISupports))
return this;
throw Components.results.NS_ERROR_NO_INTERFACE;
@ -200,7 +200,7 @@ function _dump_exception_stack(stack) {
* @note Idle service is overridden by default. If a test requires it, it will
* have to call do_get_idle() function at least once before use.
*/
_fakeIdleService = {
var _fakeIdleService = {
get registrar() {
delete this.registrar;
return this.registrar =