mirror of
https://github.com/denoland/deno.git
synced 2025-02-21 04:42:51 -05:00

This PR resolves 2 issues of Socket class of node compat (both are related to playwright) Currently `browser.launch()` of playwright is not working. `browser.launch` opens PipeTransport (which is based on Pipe/IPC socket) with the browser process. But that pipe doesn't start reading the data because of the workaround #27662 (which pauses the socket at the beginning if it's from playwright-core). This PR fixes this issue by checking whether the given handle is `ipc` handle or not. Another issue is that sock-init-workaround for TLS connection stopped working at #27707 because of the changes of TLS socket initialization steps. This change fixes the issue by correctly returning the function in workaround path. The added case `specs::npm::playwright_compat` checks both fixes with actual playwright and playwright-core packages. `browser.launch` issues closes #16899 closes #27623 `https.request` issue closes #27658
4 lines
116 B
TypeScript
4 lines
116 B
TypeScript
import { chromium } from "npm:playwright";
|
|
await chromium.launch();
|
|
console.log("chromium launched");
|
|
Deno.exit(0);
|