Skip to content

Commit fef6605

Browse files
committed
Remove second argument to ErrnoError. NFC
This was only passed in one 1 out of 199 call sites, and never read (AFIACT).
1 parent 7e6366d commit fef6605

15 files changed

+16
-17
lines changed

src/library_fs.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ FS.staticInit();` +
231231
lookupNode(parent, name) {
232232
var errCode = FS.mayLookup(parent);
233233
if (errCode) {
234-
throw new FS.ErrnoError(errCode, parent);
234+
throw new FS.ErrnoError(errCode);
235235
}
236236
var hash = FS.hashName(parent.id, name);
237237
#if CASE_INSENSITIVE_FS
@@ -1408,15 +1408,14 @@ FS.staticInit();` +
14081408
},
14091409
ensureErrnoError() {
14101410
if (FS.ErrnoError) return;
1411-
FS.ErrnoError = /** @this{Object} */ function ErrnoError(errno, node) {
1411+
FS.ErrnoError = /** @this{Object} */ function ErrnoError(errno) {
14121412
// We set the `name` property to be able to identify `FS.ErrnoError`
14131413
// - the `name` is a standard ECMA-262 property of error objects. Kind of good to have it anyway.
14141414
// - when using PROXYFS, an error can come from an underlying FS
14151415
// as different FS objects have their own FS.ErrnoError each,
14161416
// the test `err instanceof FS.ErrnoError` won't detect an error coming from another filesystem, causing bugs.
14171417
// we'll use the reliable test `err.name == "ErrnoError"` instead
14181418
this.name = 'ErrnoError';
1419-
this.node = node;
14201419
this.setErrno = /** @this{Object} */ function(errno) {
14211420
this.errno = errno;
14221421
#if ASSERTIONS
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9936
1+
9927
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24683
1+
24667
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9921
1+
9909
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24651
1+
24635
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11015
1+
11003
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
28573
1+
28557
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9903
1+
9893
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24576
1+
24560
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11021
1+
11010
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
28573
1+
28557
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9936
1+
9927
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24683
1+
24667
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7874
1+
7866
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19705
1+
19689

0 commit comments

Comments
 (0)