bun
bun copied to clipboard
Reading promise from prisma.find causes STATUS_HEAP_CORRUPTION (code 0xC0000374)
What version of Bun is running?
1.0.26
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What steps can reproduce the bug?
Init project, install prisma, create schema, migrate schema. Then execute following code
import { PrismaClient } from '@prisma/client'
const prismaClient = new PrismaClient()
onInit().then(() => console.log('On init done'))
async function onInit () {
const results = await prismaClient.article.findMany(
{ where: { title: 'test' } })
console.log('results', results)
}
What is the expected behavior?
2 outputs:
results []
On init done
What do you see instead?
0 outputs, 1 exit message, process stops even in watch mode:
Process finished with exit code -1073740940 (0xC0000374)
Additional information
No response