Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry_deno/packages/browser/src/sdk.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/sdk.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.