Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 77a9f606d65d1adaefc6aef62ec6c597c7e72967
      
https://github.com/WebKit/WebKit/commit/77a9f606d65d1adaefc6aef62ec6c597c7e72967
  Author: Sosuke Suzuki <[email protected]>
  Date:   2026-05-19 (Tue, 19 May 2026)

  Changed paths:
    A JSTests/wasm/stress/pglite.js
    A JSTests/wasm/stress/resources/pglite/LICENSE.Emscripten
    A JSTests/wasm/stress/resources/pglite/LICENSE.PostgreSQL
    A JSTests/wasm/stress/resources/pglite/LICENSE.pglite
    A JSTests/wasm/stress/resources/pglite/README.md
    A JSTests/wasm/stress/resources/pglite/jsc-harness.js
    A JSTests/wasm/stress/resources/pglite/pglite.data
    A JSTests/wasm/stress/resources/pglite/pglite.js
    A JSTests/wasm/stress/resources/pglite/pglite.wasm
    A JSTests/wasm/stress/resources/pglite/psql.js

  Log Message:
  -----------
  [Wasm] Add PGlite (PostgreSQL wasm) stress test
https://bugs.webkit.org/show_bug.cgi?id=315076

Reviewed by Keith Miller.

This patch adds PGlite (https://github.com/electric-sql/pglite), PostgreSQL
compiled to WebAssembly, as a wasm stress test.

Bun already includes tests using PGlite, and they have caught several wasm bugs
in JavaScriptCore. By adding the same kind of test to JSC, we expect to detect
such issues earlier.

The official PGlite distribution requires Node.js APIs, so this patch adds a
small harness that runs in the jsc shell only. As noted in
JSTests/wasm/stress/resources/pglite/README.md, the vendored binaries and source
code include code from PGlite, PostgreSQL, and Emscripten, and the corresponding
license files are bundled alongside.

* JSTests/wasm/stress/pglite.js: Added.
(shouldBe):
(async const):
(catch):
* JSTests/wasm/stress/resources/pglite/LICENSE.Emscripten: Added.
* JSTests/wasm/stress/resources/pglite/LICENSE.PostgreSQL: Added.
* JSTests/wasm/stress/resources/pglite/LICENSE.pglite: Added.
* JSTests/wasm/stress/resources/pglite/README.md: Added.
* JSTests/wasm/stress/resources/pglite/jsc-harness.js: Added.
(typeof.globalThis.crypto.string_appeared_here.globalThis.crypto.getRandomValues):
(typeof.globalThis.console.string_appeared_here.globalThis.console.undefined.const.noop):
(const.PGProtocol.message):
(const.PGProtocol.cstr):
(const.PGProtocol.i16):
(const.PGProtocol.i32):
(const.PGProtocol.cat):
(const.PGProtocol.query):
(const.PGProtocol.parse):
(const.PGProtocol.bind):
(const.PGProtocol.describe):
(const.PGProtocol.execute):
(const.PGProtocol.sync):
(parseBackendMessages):
(async startPGlite):
* JSTests/wasm/stress/resources/pglite/pglite.data: Added.
* JSTests/wasm/stress/resources/pglite/pglite.js: Added.
(Module.):
(Module):
* JSTests/wasm/stress/resources/pglite/pglite.wasm: Added.

Canonical link: https://commits.webkit.org/313472@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to