playwright/packages/playwright-core
Andrey Lushnikov 9ca9b08d90
fix: better formatting for sparse arrays (#20379)
Right now arrays preview yields all array elements. In case
of a sparse array with a single element on index 10000000,
this results in a large string that OOM Node.js.

This patch changes pretty-printing. For example:

```ts
// Given this array
const a = [];
a[10] = 1;
// Before this patch, pretty printing will yield:
"[,,,,,,,,1]"
// With this patch, pretty printing yields:
"[empty x 9, 1]"
```

The new array pretty-printing is equal to what Chrome DevTools
do to render sparse arrays.

Fixes #20347
2023-01-27 05:07:55 -08:00
..
bin chore: remove separate network tethering client connection (#20267) 2023-01-21 18:18:22 -08:00
bundles chore: fix build/watch script for bundles and vite-powered packages (#20055) 2023-01-11 18:36:04 -08:00
src fix: better formatting for sparse arrays (#20379) 2023-01-27 05:07:55 -08:00
types docs: clarify the null value for the viewport (#20333) 2023-01-25 17:48:18 -08:00
.npmignore chore: babel, expect, zip bundles (#13588) 2022-04-18 11:31:58 -07:00
browsers.json feat(webkit): roll to r1783 (#20433) 2023-01-27 11:50:43 +01:00
cli.js chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.js chore: sunset Node.js 12 (#16512) 2022-08-15 18:10:04 +02:00
index.mjs fix: export request from index.jsm (#13158) 2022-03-30 09:35:47 -07:00
package.json chore: mark 1.31-next (#20268) 2023-01-20 19:29:14 -08:00
README.md chore: drop dependency on playwright-core in all our packages (#2318) 2020-05-21 13:18:15 -07:00
ThirdPartyNotices.txt chore: vendor proper-lockfile dependency (#19969) 2023-01-09 17:13:58 -08:00

playwright-core

This package contains the no-browser flavor of Playwright.