@remix_labs/hub-client 2.3350.0-dev → 2.3351.0-dev
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/miniwasi.js +7 -2
- package/package.json +1 -1
package/miniwasi.js
CHANGED
|
@@ -82,6 +82,7 @@ class MiniWASI {
|
|
|
82
82
|
output = console.error;
|
|
83
83
|
break;
|
|
84
84
|
default:
|
|
85
|
+
console.error("[groovebox miniwasi] filesystem not supported");
|
|
85
86
|
return 8; // EBADF
|
|
86
87
|
}
|
|
87
88
|
let num = 0;
|
|
@@ -114,7 +115,10 @@ class MiniWASI {
|
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
fd_fdstat_get(fd, buf) {
|
|
117
|
-
if (fd > 2)
|
|
118
|
+
if (fd > 2) {
|
|
119
|
+
console.error("[groovebox miniwasi] filesystem not supported");
|
|
120
|
+
return 8; // EBADF
|
|
121
|
+
}
|
|
118
122
|
this.update();
|
|
119
123
|
// fdstat layout: fs_filetype(u8) + pad(1) + fs_flags(u16) + pad(4) + fs_rights_base(u64) + fs_rights_inheriting(u64)
|
|
120
124
|
const view = new DataView(this.memory.buffer);
|
|
@@ -139,10 +143,11 @@ class MiniWASI {
|
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
fd_prestat_get(fd, buf) {
|
|
146
|
+
console.error("[groovebox miniwasi] filesystem not supported");
|
|
142
147
|
return 8; // EBADF
|
|
143
148
|
}
|
|
144
|
-
|
|
145
149
|
fd_prestat_dir_name(fd, path, path_len) {
|
|
150
|
+
console.error("[groovebox miniwasi] filesystem not supported");
|
|
146
151
|
return 8; // EBADF
|
|
147
152
|
}
|
|
148
153
|
|