Skip to content

Commit

Permalink
Disable IPInt (#16188)
Browse files Browse the repository at this point in the history
  • Loading branch information
190n authored Jan 6, 2025
1 parent 193a630 commit 8268af3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bun.js/bindings/ZigGlobalObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ extern "C" void JSCInitialize(const char* envp[], size_t envc, void (*onCrash)(c
JSC::Options::useConcurrentJIT() = true;
// JSC::Options::useSigillCrashAnalyzer() = true;
JSC::Options::useWasm() = true;
// Disable IPInt, the in-place WASM interpreter, by default until it is more stable
// (it breaks pglite as of 2025-01-06)
JSC::Options::useWasmIPInt() = false;
JSC::Options::useSourceProviderCache() = true;
// JSC::Options::useUnlinkedCodeBlockJettisoning() = false;
JSC::Options::exposeInternalModuleLoader() = true;
Expand Down
Binary file modified test/bun.lockb
Binary file not shown.
19 changes: 19 additions & 0 deletions test/js/third_party/@electric-sql/pglite/pglite.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { PGlite } from "@electric-sql/pglite";

describe("pglite", () => {
it("can initialize successfully", async () => {
const db = new PGlite();
expect(await db.query("SELECT version()")).toEqual({
rows: [
{
version:
// since pglite is wasm, there is only one binary for all platforms. it always thinks it
// is x86_64-pc-linux-gnu.
"PostgreSQL 16.4 on x86_64-pc-linux-gnu, compiled by emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.72 (437140d149d9c977ffc8b09dbaf9b0f5a02db190), 32-bit",
},
],
fields: [{ name: "version", dataTypeID: 25 }],
affectedRows: 0,
});
});
});
1 change: 1 addition & 0 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@azure/service-bus": "7.9.4",
"@duckdb/node-api": "1.1.3-alpha.7",
"@electric-sql/pglite": "0.2.15",
"@grpc/grpc-js": "1.12.0",
"@grpc/proto-loader": "0.7.10",
"@napi-rs/canvas": "0.1.65",
Expand Down

0 comments on commit 8268af3

Please sign in to comment.