Skip to content

Commit 409d114

Browse files
committed
Lint, typecheck
1 parent 94b91da commit 409d114

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/php-wasm/universal/src/lib/sandboxed-spawn-handler-factory.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ export function sandboxedSpawnHandlerFactory(
4545
processApi.exit(0);
4646
} else if (binaryName === 'less') {
4747
processApi.on('stdin', (data: Uint8Array) => {
48-
processApi.stdout(data);
48+
processApi.stdout(data.buffer as ArrayBuffer);
4949
});
50-
processApi.flushStdin();
5150
processApi.exit(0);
5251
} else if (binaryName === 'php') {
5352
const { php, reap } = await processManager.acquirePHPInstance({
@@ -71,14 +70,14 @@ export function sandboxedSpawnHandlerFactory(
7170
result.stdout.pipeTo(
7271
new WritableStream({
7372
write(chunk) {
74-
processApi.stdout(chunk);
73+
processApi.stdout(chunk.buffer as ArrayBuffer);
7574
},
7675
})
7776
);
7877
result.stderr.pipeTo(
7978
new WritableStream({
8079
write(chunk) {
81-
processApi.stderr(chunk);
80+
processApi.stderr(chunk.buffer as ArrayBuffer);
8281
},
8382
})
8483
);

0 commit comments

Comments
 (0)