@@ -20,14 +20,14 @@ function writeOut(message) {
20
20
}
21
21
22
22
function onClose ( fd ) {
23
- return function ( ) {
23
+ return ( ) => {
24
24
if ( fs === null ) fs = require ( 'fs' ) ;
25
25
fs . close ( fd , nop ) ;
26
26
} ;
27
27
}
28
28
29
29
function onOpen ( cb ) {
30
- return function ( err , fd ) {
30
+ return ( err , fd ) => {
31
31
acquiringFd = false ;
32
32
if ( fd !== undefined ) {
33
33
cachedFd = fd ;
@@ -41,7 +41,7 @@ function onOpen(cb) {
41
41
function onAcquired ( message ) {
42
42
// make a best effort attempt at writing the message
43
43
// to the fd. Errors are ignored at this point.
44
- return function ( err , fd ) {
44
+ return ( err , fd ) => {
45
45
if ( err )
46
46
return writeOut ( message ) ;
47
47
if ( fs === null ) fs = require ( 'fs' ) ;
@@ -70,7 +70,7 @@ function output(message) {
70
70
}
71
71
72
72
function doEmitWarning ( warning ) {
73
- return function ( ) {
73
+ return ( ) => {
74
74
process . emit ( 'warning' , warning ) ;
75
75
} ;
76
76
}
@@ -104,7 +104,7 @@ function setupProcessWarnings() {
104
104
// process.emitWarning(error)
105
105
// process.emitWarning(str[, type[, code]][, ctor])
106
106
// process.emitWarning(str[, options])
107
- process . emitWarning = function ( warning , type , code , ctor , now ) {
107
+ process . emitWarning = ( warning , type , code , ctor , now ) => {
108
108
let detail ;
109
109
if ( type !== null && typeof type === 'object' && ! Array . isArray ( type ) ) {
110
110
ctor = type . ctor ;
0 commit comments