Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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@v4.1.4/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>