Skip to content

Commit 034e1b2

Browse files
mcollinaaduh95
andauthored
Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 117d09a commit 034e1b2

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

doc/api/vfs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ added: REPLACEME
1313
The `node:vfs` module provides an in-memory virtual file system with an
1414
`fs`-like API. It is useful for tests, fixtures, embedded assets, and other
1515
scenarios where you need a self-contained file system without touching the
16-
real disk.
16+
actual file-system.
1717

1818
To access it:
1919

@@ -77,8 +77,8 @@ const realVfs = vfs.create(new vfs.RealFSProvider('/tmp/sandbox'));
7777
added: REPLACEME
7878
-->
7979

80-
A `VirtualFileSystem` wraps a [`VirtualProvider`][] and exposes an
81-
`fs`-like API. Each instance maintains its own file tree.
80+
A `VirtualFileSystem` wraps a [`VirtualProvider`][] and exposes a
81+
`node:fs`-like API. Each instance maintains its own file tree.
8282

8383
### `new VirtualFileSystem([provider][, options])`
8484

lib/internal/bootstrap/realm.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,14 @@ const schemelessBlockList = new SafeSet([
133133
'vfs',
134134
]);
135135
// Modules that will only be enabled at run time.
136-
const experimentalModuleList = new SafeSet(['ffi', 'sqlite', 'quic', 'stream/iter', 'zlib/iter', 'vfs']);
136+
const experimentalModuleList = new SafeSet([
137+
'ffi',
138+
'quic',
139+
'sqlite',
140+
'stream/iter',
141+
'vfs',
142+
'zlib/iter',
143+
]);
137144

138145
// Set up process.binding() and process._linkedBinding().
139146
{

0 commit comments

Comments
 (0)