We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1611617 commit 240e164Copy full SHA for 240e164
src/library_fs.js
@@ -174,14 +174,10 @@ FS.staticInit();
174
path = PATH_FS.resolve(path);
175
176
if (!path) return { path: '', node: null };
177
-
178
- var defaults = {
179
- follow_mount: true,
180
- };
181
- opts = Object.assign(defaults, opts)
+ opts.follow_mount ??= true
182
183
// limit max consecutive symlinks to 40 (SYMLOOP_MAX).
184
- linkloop: for (var nlinks = 0; nlinks < 40; nlinks ++) {
+ linkloop: for (var nlinks = 0; nlinks < 40; nlinks++) {
185
// split the absolute path
186
var parts = path.split('/').filter((p) => !!p);
187
0 commit comments