From 5cd2add72dca67a2cbacf391313d62ae7b492a79 Mon Sep 17 00:00:00 2001 From: Travis Jeffery Date: Sat, 7 Dec 2013 22:34:38 -0500 Subject: [PATCH] Fix var name (#985) --- support/tail.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/support/tail.js b/support/tail.js index 8afab48282..05dd152571 100644 --- a/support/tail.js +++ b/support/tail.js @@ -33,9 +33,8 @@ var uncaughtExceptionHandlers = []; process.removeListener = function(e, fn){ if ('uncaughtException' == e) { global.onerror = function() {}; - - var indexOfFn = uncaughtExceptionHandlers.indexOf(fn); - if (indexOfFn != -1) { uncaughtExceptionHandlers.splice(indexOfFn, 1); } + var i = uncaughtExceptionHandlers.indexOf(fn); + if (i != -1) { uncaughtExceptionHandlers.splice(i, 1); } } };