oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
72.22k stars 2.58k forks source link

Thread 5908 panic: reached unreachable code while using 'Bun.Transpiler.transform' #11444

Open kevgeoleo opened 1 month ago

kevgeoleo commented 1 month ago

What version of Bun is running?

Bun v1.0.30-canary.40 (44959e68)

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Hi, I want to report the following bug found while using 'Bun.Transpiler.transform':

How To Reproduce:

Run the following script to trigger Bun's panic:

const transpiler = new Bun.Transpiler({ loader: "tsx" });
const code = "<div>Hello, World!</div>";
transpiler.transform(code).then((result) => console.log(result));

If you don't get the bug on the first try please try running the code 2-3 times.

Please take a look at this attached screenshot: panic

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

hubdidub commented 1 month ago

Hi, that's a relatively old version of Bun you are using there. I can't reproduce the crash, I'm using v1.1.10.

It's possible that they have already fixed the problem. Can you try updating to the newest version and see if it still crashes?

kevgeoleo commented 1 month ago

Hi, I currently updated to v1.1.10 and this issue does not exist in this version. image

vdata1 commented 1 month ago

Hi @hubdidub, but it seems still verified by GH: https://github.com/oven-sh/bun/releases?page=2