diff --git a/semver/parse_range.ts b/semver/parse_range.ts index c429d1a02760..88e49847886a 100644 --- a/semver/parse_range.ts +++ b/semver/parse_range.ts @@ -279,6 +279,5 @@ export function parseRange(range: string): Range { const ranges = range .split(/\s*\|\|\s*/) .map((range) => parseHyphenRange(range).flatMap(parseRangeString)); - Object.defineProperty(ranges, "ranges", { value: ranges }); - return ranges as Range; + return ranges; }