Skip to content

Commit

Permalink
spelling: timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Sep 4, 2017
1 parent 70c27f1 commit 9b5a2ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mocha.js
Expand Up @@ -13074,7 +13074,7 @@ var process = module.exports = {};
var cachedSetTimeout;
var cachedClearTimeout;

function defaultSetTimout() {
function defaultSetTimeout() {
throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
Expand All @@ -13085,10 +13085,10 @@ function defaultClearTimeout () {
if (typeof setTimeout === 'function') {
cachedSetTimeout = setTimeout;
} else {
cachedSetTimeout = defaultSetTimout;
cachedSetTimeout = defaultSetTimeout;
}
} catch (e) {
cachedSetTimeout = defaultSetTimout;
cachedSetTimeout = defaultSetTimeout;
}
try {
if (typeof clearTimeout === 'function') {
Expand All @@ -13106,7 +13106,7 @@ function runTimeout(fun) {
return setTimeout(fun, 0);
}
// if setTimeout wasn't available but was latter defined
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
if ((cachedSetTimeout === defaultSetTimeout || !cachedSetTimeout) && setTimeout) {
cachedSetTimeout = setTimeout;
return setTimeout(fun, 0);
}
Expand Down

0 comments on commit 9b5a2ce

Please sign in to comment.