@bytecodealliance/preview2-shim 0.16.2 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/nodejs/filesystem.js +7 -0
- package/package.json +1 -1
package/lib/nodejs/filesystem.js
CHANGED
|
@@ -700,6 +700,13 @@ function convertFsError(e) {
|
|
|
700
700
|
return "text-file-busy";
|
|
701
701
|
case "EXDEV":
|
|
702
702
|
return "cross-device";
|
|
703
|
+
case "UNKNOWN":
|
|
704
|
+
switch (e.errno) {
|
|
705
|
+
case -4094:
|
|
706
|
+
return "no-such-device";
|
|
707
|
+
default:
|
|
708
|
+
throw e;
|
|
709
|
+
}
|
|
703
710
|
default:
|
|
704
711
|
throw e;
|
|
705
712
|
}
|
package/package.json
CHANGED