Skip to content

Commit 9cf25d5

Browse files
Update lib/internal/fs/dir.js
Co-authored-by: Livia Medeiros <livia@cirno.name>
1 parent c7fa030 commit 9cf25d5

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

lib/internal/fs/dir.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -300,22 +300,23 @@ const nonEnumerableDescriptor = {
300300
writable: true,
301301
configurable: true,
302302
};
303-
ObjectDefineProperties(Dir.prototype, { __proto__: null,
304-
[SymbolDispose]: {
305-
__proto__: null,
306-
...nonEnumerableDescriptor,
307-
value: Dir.prototype.closeSync,
308-
},
309-
[SymbolAsyncDispose]: {
310-
__proto__: null,
311-
...nonEnumerableDescriptor,
312-
value: Dir.prototype.close,
313-
},
314-
[SymbolAsyncIterator]: {
315-
__proto__: null,
316-
...nonEnumerableDescriptor,
317-
value: Dir.prototype.entries,
318-
} });
303+
ObjectDefineProperties(Dir.prototype, {
304+
[SymbolDispose]: {
305+
__proto__: null,
306+
...nonEnumerableDescriptor,
307+
value: Dir.prototype.closeSync,
308+
},
309+
[SymbolAsyncDispose]: {
310+
__proto__: null,
311+
...nonEnumerableDescriptor,
312+
value: Dir.prototype.close,
313+
},
314+
[SymbolAsyncIterator]: {
315+
__proto__: null,
316+
...nonEnumerableDescriptor,
317+
value: Dir.prototype.entries,
318+
},
319+
});
319320

320321
function opendir(path, options, callback) {
321322
callback = typeof options === 'function' ? options : callback;

0 commit comments

Comments
 (0)