Skip to content

Commit fb637b4

Browse files
committed
Enable/disable sync stdio in main UO thread before webworker
1 parent e265be2 commit fb637b4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/shell_impl.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ export class ShellImpl implements IShellImpl {
9595
this._options.color ? ansi.styleReset : undefined
9696
);
9797

98-
this._tabCompleter = new TabCompleter(this._runContext, this._options.enableBufferedStdinCallback);
98+
this._tabCompleter = new TabCompleter(
99+
this._runContext,
100+
this._options.enableBufferedStdinCallback
101+
);
99102
}
100103

101104
get aliases(): Aliases {

test/integration-tests/shell.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,7 @@ test.describe('Shell', () => {
553553
expect(lines.at(-1)).toMatch(/ls a$/);
554554
});
555555

556-
//const stdinOptions = ['sab', 'sw'];
557-
const stdinOptions = ['sw'];
556+
const stdinOptions = ['sab', 'sw'];
558557
stdinOptions.forEach(stdinOption => {
559558
test(`check prompt displayed and accepted using y via ${stdinOption}`, async ({ page }) => {
560559
const output = await page.evaluate(

0 commit comments

Comments
 (0)