Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry_deno/packages/browser/src/index.ts>wrap

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
function wrap
import { wrap } from "https://deno.land/x/sentry_deno@v0.2.2/packages/browser/src/index.ts";

Wrap code within a try/catch block so the SDK is able to capture errors.

Parameters

fn: (...args: any) => any

A function to wrap.

Returns

any

The result of wrapped function call.