From 0efe438f7c191d8504355e03b27fe7e3055c9387 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 26 Dec 2023 18:30:26 -0700 Subject: perf: remove opAsync (#21690) `opAsync` requires a lookup by name on each async call. This is a mechanical translation of all opAsync calls to ensureFastOps. The `opAsync` API on Deno.core will be removed at a later time. --- cli/tests/unit/cron_test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/cron_test.ts b/cli/tests/unit/cron_test.ts index 2a146bcfa..8c484af32 100644 --- a/cli/tests/unit/cron_test.ts +++ b/cli/tests/unit/cron_test.ts @@ -1,9 +1,12 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. import { assertEquals, assertThrows } from "./test_util.ts"; -import { + +// @ts-ignore This is not publicly typed namespace, but it's there for sure. +const { formatToCronSchedule, parseScheduleToString, -} from "../../../ext/cron/01_cron.ts"; + // @ts-expect-error TypeScript (as of 3.7) does not support indexing namespaces by symbol +} = Deno[Deno.internal]; const sleep = (time: number) => new Promise((r) => setTimeout(r, time)); -- cgit v1.2.3