File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/php-wasm/universal/src/lib Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,8 @@ export function sandboxedSpawnHandlerFactory(
45
45
processApi . exit ( 0 ) ;
46
46
} else if ( binaryName === 'less' ) {
47
47
processApi . on ( 'stdin' , ( data : Uint8Array ) => {
48
- processApi . stdout ( data ) ;
48
+ processApi . stdout ( data . buffer as ArrayBuffer ) ;
49
49
} ) ;
50
- processApi . flushStdin ( ) ;
51
50
processApi . exit ( 0 ) ;
52
51
} else if ( binaryName === 'php' ) {
53
52
const { php, reap } = await processManager . acquirePHPInstance ( {
@@ -71,14 +70,14 @@ export function sandboxedSpawnHandlerFactory(
71
70
result . stdout . pipeTo (
72
71
new WritableStream ( {
73
72
write ( chunk ) {
74
- processApi . stdout ( chunk ) ;
73
+ processApi . stdout ( chunk . buffer as ArrayBuffer ) ;
75
74
} ,
76
75
} )
77
76
) ;
78
77
result . stderr . pipeTo (
79
78
new WritableStream ( {
80
79
write ( chunk ) {
81
- processApi . stderr ( chunk ) ;
80
+ processApi . stderr ( chunk . buffer as ArrayBuffer ) ;
82
81
} ,
83
82
} )
84
83
) ;
You can’t perform that action at this time.
0 commit comments