Commit 75e5501
authored
[v7] Bun Global Unhandled Handlers (#11959)
Add support for global onUnhandled Error/Promise for Bun.
```javascript
import * as Sentry from "@sentry/bun";
Sentry.init({
dsn: "DSN",
});
console.log("Hello via Bun!");
throw new Error('Unhandled Bun Sentry Error!');
```
<img width="1063" alt="image"
src="https://github.com/getsentry/sentry-javascript/assets/363802/fd90969f-82a4-4300-a67e-1ebb5cf540fa">
ref: oven-sh/bun#50911 parent 02bc198 commit 75e5501
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments