Skip to content

Commit

Permalink
BREAKING(async): stop exporting ERROR_WHILE_MAPPING_MESSAGE (#5041)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Jun 14, 2024
1 parent b3be4c9 commit 3a93085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion async/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This module is browser compatible.

/** Error message emitted from the thrown error while mapping. */
export const ERROR_WHILE_MAPPING_MESSAGE = "Threw while mapping.";
const ERROR_WHILE_MAPPING_MESSAGE = "Threw while mapping.";

/**
* pooledMap transforms values from an (async) iterable into another async
Expand Down
4 changes: 2 additions & 2 deletions async/pool_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { delay } from "./delay.ts";
import { ERROR_WHILE_MAPPING_MESSAGE, pooledMap } from "./pool.ts";
import { pooledMap } from "./pool.ts";
import {
assert,
assertEquals,
Expand Down Expand Up @@ -38,7 +38,7 @@ Deno.test("pooledMap() handles errors", async () => {
}
},
AggregateError,
ERROR_WHILE_MAPPING_MESSAGE,
"Threw while mapping.",
);
assertEquals(error.errors.length, 2);
assertStringIncludes(error.errors[0].stack, "Error: Bad number: 1");
Expand Down

0 comments on commit 3a93085

Please sign in to comment.