@remix_labs/hub-client 2.3351.0-dev → 2.3356.0
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 +3 -6
- package/package.json +1 -1
package/miniwasi.js
CHANGED
|
@@ -40,7 +40,6 @@ class MiniWASI {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
clock_time_get(id, precision, time) {
|
|
43
|
-
this.update();
|
|
44
43
|
const buffer = new DataView(this.memory.buffer);
|
|
45
44
|
if (id === 0 /* CLOCKID_REALTIME */) {
|
|
46
45
|
buffer.setBigUint64(
|
|
@@ -74,12 +73,12 @@ class MiniWASI {
|
|
|
74
73
|
let buffer, output;
|
|
75
74
|
switch (fd) {
|
|
76
75
|
case 1:
|
|
77
|
-
buffer = this.stdout;
|
|
78
76
|
output = console.log;
|
|
79
|
-
break;
|
|
80
|
-
case 2: // redirect to stdout...
|
|
81
77
|
buffer = this.stdout;
|
|
78
|
+
break;
|
|
79
|
+
case 2:
|
|
82
80
|
output = console.error;
|
|
81
|
+
buffer = this.stderr;
|
|
83
82
|
break;
|
|
84
83
|
default:
|
|
85
84
|
console.error("[groovebox miniwasi] filesystem not supported");
|
|
@@ -143,11 +142,9 @@ class MiniWASI {
|
|
|
143
142
|
}
|
|
144
143
|
|
|
145
144
|
fd_prestat_get(fd, buf) {
|
|
146
|
-
console.error("[groovebox miniwasi] filesystem not supported");
|
|
147
145
|
return 8; // EBADF
|
|
148
146
|
}
|
|
149
147
|
fd_prestat_dir_name(fd, path, path_len) {
|
|
150
|
-
console.error("[groovebox miniwasi] filesystem not supported");
|
|
151
148
|
return 8; // EBADF
|
|
152
149
|
}
|
|
153
150
|
|