File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,17 @@ const Buffer = require('buffer').Buffer;
44const Writable = require ( 'stream' ) . Writable ;
55const fs = require ( 'fs' ) ;
66const util = require ( 'util' ) ;
7- const constants = process . binding ( 'constants' ) . fs ;
8-
9- const O_APPEND = constants . O_APPEND | 0 ;
10- const O_CREAT = constants . O_CREAT | 0 ;
11- const O_EXCL = constants . O_EXCL | 0 ;
12- const O_RDONLY = constants . O_RDONLY | 0 ;
13- const O_RDWR = constants . O_RDWR | 0 ;
14- const O_SYNC = constants . O_SYNC | 0 ;
15- const O_TRUNC = constants . O_TRUNC | 0 ;
16- const O_WRONLY = constants . O_WRONLY | 0 ;
7+
8+ const {
9+ O_APPEND ,
10+ O_CREAT ,
11+ O_EXCL ,
12+ O_RDONLY ,
13+ O_RDWR ,
14+ O_SYNC ,
15+ O_TRUNC ,
16+ O_WRONLY
17+ } = process . binding ( 'constants' ) . fs ;
1718
1819function assertEncoding ( encoding ) {
1920 if ( encoding && ! Buffer . isEncoding ( encoding ) ) {
You can’t perform that action at this time.
0 commit comments