Skip to content

Commit 55ee2f6

Browse files
committed
Fix FileUtils.touch
1 parent 55fecb2 commit 55ee2f6

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v1
1515
with:
16-
node-version: 18.12
16+
node-version: 20.12
1717
cache: npm
1818
- run: |
1919
npm install

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 18.12.0
1+
nodejs 20.12.1

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ To run project locally:
3636
1. Run local server:
3737

3838
```sh
39-
npm run dev
39+
npm run dev -- --host 0.0.0.0
4040
```
41+
42+
open https://local.runruby.dev:5173/

src/engines/wasi/wasiImports.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WASI } from "@bjorn3/browser_wasi_shim";
1+
import { WASI, wasi as wasiDefs } from "@bjorn3/browser_wasi_shim";
22

33
const tracedWasiImports = (wasi: WASI) => {
44
for (const key in wasi.wasiImport) {
@@ -21,6 +21,7 @@ export const wasiImports = (wasi: WASI, options?: { debug?: boolean }) => {
2121
return {
2222
wasi_snapshot_preview1: {
2323
...(options?.debug ? tracedWasiImports(wasi) : wasi.wasiImport),
24+
path_filestat_set_times: () => wasiDefs.ERRNO_SUCCESS,
2425
},
2526
};
2627
};

0 commit comments

Comments
 (0)