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

x/deno/cli/js/web/streams/internals.ts>setPromiseIsHandledToTrue

A modern runtime for JavaScript and TypeScript.
Go to Latest
function setPromiseIsHandledToTrue
import { setPromiseIsHandledToTrue } from "https://deno.land/x/deno@v1.0.0/cli/js/web/streams/internals.ts";

An internal function which mimics the behavior of setting the promise to handled in JavaScript. In this situation, an assertion failure, which shouldn't happen will get thrown, instead of swallowed.

Parameters

promise: PromiseLike<unknown>