Commit ab79709
authored
[v8] Bun Global Unhandled Handlers (#11960)
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 6c3abe2 commit ab79709
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments