We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133488c commit f1de3b4Copy full SHA for f1de3b4
IntegrationTests/lib.js
@@ -2,11 +2,12 @@ import { SwiftRuntime } from "javascript-kit-swift"
2
import { WASI as NodeWASI } from "wasi"
3
import { WASI as MicroWASI, useAll } from "uwasi"
4
import * as fs from "fs/promises"
5
+import path from "path";
6
7
const WASI = {
8
MicroWASI: ({ programName }) => {
9
const wasi = new MicroWASI({
- args: [programName],
10
+ args: [path.basename(programName)],
11
env: {},
12
features: [useAll()],
13
})
@@ -21,7 +22,7 @@ const WASI = {
21
22
},
23
Node: ({ programName }) => {
24
const wasi = new NodeWASI({
25
26
27
preopens: {
28
"/": "./",
0 commit comments