From 9b5a2ced4b41a85c1740ed9e01cfb5a02a0fc1b4 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 4 Sep 2017 04:24:42 +0000 Subject: [PATCH] spelling: timeout --- mocha.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mocha.js b/mocha.js index 2df8b31866..10f36c2e5a 100644 --- a/mocha.js +++ b/mocha.js @@ -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 () { @@ -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') { @@ -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); }