refactor(domain): reuse canonical ordering and digest owners

This commit is contained in:
morluto
2026-10-22 14:04:28 +08:00
parent c537c52c96
commit 51be954c4b
6 changed files with 37 additions and 55 deletions
@@ -1,3 +1,4 @@
import { uniqueSortedBy } from "../canonicalOrdering.js";
import * as t from "@babel/types";
import { RETURNED_REFERENCE_WIDENING_LIMITATION } from "./javascriptSemanticCoverage.js";
import { collectElectronWrappedCallPaths } from "./electronWrappedCallPaths.js";
@@ -20,7 +21,6 @@ import {
detectVendors,
failedJavaScriptStaticAnalysis,
registrationKey,
sortedUnique,
stringValue,
} from "./javascriptStaticAnalysisHelpers.js";
import {
@@ -218,7 +218,7 @@ const finalizeStaticAnalysis = (
accumulator.storage,
accumulator.moduleRangeIndex,
),
bundler_registrations: sortedUnique(
bundler_registrations: uniqueSortedBy(
accumulator.registrations,
registrationKey,
),