mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Enable TS strict mode by default (#3899)
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
This commit is contained in:
parent
852823fa50
commit
90125566bb
56 changed files with 314 additions and 179 deletions
|
@ -27,7 +27,7 @@ testPerm({ net: true }, async function netCloseWhileAccept(): Promise<void> {
|
|||
testPerm({ net: true }, async function netConcurrentAccept(): Promise<void> {
|
||||
const listener = Deno.listen({ port: 4502 });
|
||||
let acceptErrCount = 0;
|
||||
const checkErr = (e): void => {
|
||||
const checkErr = (e: Deno.DenoError<Deno.ErrorKind>): void => {
|
||||
assertEquals(e.kind, Deno.ErrorKind.Other);
|
||||
if (e.message === "Listener has been closed") {
|
||||
assertEquals(acceptErrCount, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue