mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
feat(check): turn on useUnknownInCatchVariables (#25465)
Part of #25162 Closes #11826
This commit is contained in:
parent
b54347c448
commit
15fce5b290
10 changed files with 18 additions and 16 deletions
|
@ -74,7 +74,7 @@ Deno.test("Built-in Node modules have `node:` prefix", () => {
|
|||
createRequire();
|
||||
} catch (e) {
|
||||
thrown = true;
|
||||
const stackLines = e.stack.split("\n");
|
||||
const stackLines = (e as Error).stack!.split("\n");
|
||||
// Assert that built-in node modules have `node:<mod_name>` specifiers.
|
||||
assert(stackLines.some((line: string) => line.includes("(node:module:")));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue