Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwalters512/bun-pg-fs-reproduction
Reproduction of a bug in Bun 0.7.3
https://github.com/nwalters512/bun-pg-fs-reproduction
Last synced: 3 days ago
JSON representation
Reproduction of a bug in Bun 0.7.3
- Host: GitHub
- URL: https://github.com/nwalters512/bun-pg-fs-reproduction
- Owner: nwalters512
- Created: 2023-08-10T18:49:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-10T19:02:44.000Z (about 1 year ago)
- Last Synced: 2024-10-10T03:10:52.285Z (27 days ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bun-pg-fs-reproduction
Reproduction of a bug in Bun 0.7.3
## Prerequisites
You will need to have a local Postgres database running. The reproduction expects a user and database both named `postgres`. There should not be a password for authentication. If your local database uses different config, modify the argument to `new pg.Pool(...)` in `index.ts`.
## Steps
1. `bun install`
2. `bun run index.ts`
3. Observe that `connecting pool...` is the last thing to be printed, indicating that the code did not run to completion.
4. Comment out lines 8 and 9 (the lines starting with `const config = ...` and `console.log('loaded config', ...)`, respectively).
5. `bun run index.ts`
6. Observe that `succeeded!` is the last thing to be printed.