Module

std/node/assert/strict.ts>throws

Deno standard library
Go to Latest
function throws
import { throws } from "https://dotland.deno.dev/std@0.116.0/node/assert/strict.ts";

Parameters

fn: () => void
optional
error: RegExp | Function | Error
optional
message: string