@@ -166,7 +166,7 @@ function findBestExtensionHandler(filename) {
166166}
167167
168168function createRequireForModule ( mod ) {
169- // eslint-disable-next-line no-shadow
169+
170170 function require ( id ) {
171171 return requireImpl ( mod , id , true ) ;
172172 }
@@ -209,7 +209,7 @@ function clearTimer(timer) {
209209}
210210
211211// This is a function and not an arrow function, since the original is also a function
212- // eslint-disable-next-line no-shadow
212+
213213global . setTimeout = function setTimeout ( callback , delay , ...args ) {
214214 if ( typeof callback !== 'function' ) throw new LocalTypeError ( '"callback" argument must be a function' ) ;
215215 const obj = new Timeout ( callback , args ) ;
@@ -228,7 +228,7 @@ global.setTimeout = function setTimeout(callback, delay, ...args) {
228228 return obj ;
229229} ;
230230
231- // eslint-disable-next-line no-shadow
231+
232232global . setInterval = function setInterval ( callback , interval , ...args ) {
233233 if ( typeof callback !== 'function' ) throw new LocalTypeError ( '"callback" argument must be a function' ) ;
234234 const obj = new Interval ( ) ;
@@ -247,7 +247,7 @@ global.setInterval = function setInterval(callback, interval, ...args) {
247247 return obj ;
248248} ;
249249
250- // eslint-disable-next-line no-shadow
250+
251251global . setImmediate = function setImmediate ( callback , ...args ) {
252252 if ( typeof callback !== 'function' ) throw new LocalTypeError ( '"callback" argument must be a function' ) ;
253253 const obj = new Immediate ( ) ;
@@ -266,17 +266,17 @@ global.setImmediate = function setImmediate(callback, ...args) {
266266 return obj ;
267267} ;
268268
269- // eslint-disable-next-line no-shadow
269+
270270global . clearTimeout = function clearTimeout ( timeout ) {
271271 clearTimer ( timeout ) ;
272272} ;
273273
274- // eslint-disable-next-line no-shadow
274+
275275global . clearInterval = function clearInterval ( interval ) {
276276 clearTimer ( interval ) ;
277277} ;
278278
279- // eslint-disable-next-line no-shadow
279+
280280global . clearImmediate = function clearImmediate ( immediate ) {
281281 clearTimer ( immediate ) ;
282282} ;
@@ -317,7 +317,7 @@ function addListener(name, handler) {
317317 * @this process
318318 * @return {this }
319319 */
320- // eslint-disable-next-line no-shadow
320+
321321function process ( ) {
322322 return this ;
323323}
0 commit comments