Skip to main content
Module

std/node/assert.ts>throws

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

Parameters

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