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

x/denops_std/function/vim/mod.ts>test_alloc_fail

📚 Standard module for denops.vim
Go to Latest
function test_alloc_fail
import { test_alloc_fail } from "https://deno.land/x/denops_std@v3.8.1/function/vim/mod.ts";

This is for testing: If the memory allocation with {id} is called, then decrement {countdown}, and when it reaches zero let memory allocation fail {repeat} times. When {repeat} is smaller than one it fails one time. Can also be used as a |method|: GetAllocId()->test_alloc_fail()

Parameters

denops: Denops
id: unknown
countdown: unknown
repeat: unknown

Returns

Promise<unknown>