From 515a34b4de222e35c7ade1b92614d746e73d4c2e Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Thu, 11 Jan 2024 07:37:25 +0900 Subject: refactor: use `core.ensureFastOps()` (#21888) --- ext/node/polyfills/_util/std_testing_diff.ts | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'ext/node/polyfills/_util/std_testing_diff.ts') diff --git a/ext/node/polyfills/_util/std_testing_diff.ts b/ext/node/polyfills/_util/std_testing_diff.ts index 878e21f0b..74e396b0c 100644 --- a/ext/node/polyfills/_util/std_testing_diff.ts +++ b/ext/node/polyfills/_util/std_testing_diff.ts @@ -2,15 +2,6 @@ // This file was vendored from std/testing/_diff.ts import { primordials } from "ext:core/mod.js"; -import { - bgGreen, - bgRed, - bold, - gray, - green, - red, - white, -} from "ext:deno_node/_util/std_fmt_colors.ts"; const { ArrayFrom, ArrayPrototypeFilter, @@ -23,19 +14,29 @@ const { ArrayPrototypeReverse, ArrayPrototypeShift, ArrayPrototypeSlice, - ArrayPrototypeSplice, ArrayPrototypeSome, + ArrayPrototypeSplice, ArrayPrototypeUnshift, + MathMin, + ObjectFreeze, SafeArrayIterator, SafeRegExp, - StringPrototypeSplit, StringPrototypeReplace, + StringPrototypeSplit, StringPrototypeTrim, - MathMin, - ObjectFreeze, Uint32Array, } = primordials; +import { + bgGreen, + bgRed, + bold, + gray, + green, + red, + white, +} from "ext:deno_node/_util/std_fmt_colors.ts"; + interface FarthestPoint { y: number; id: number; -- cgit v1.2.3