From 407195ea870a82f4341671d6718f813bd9a3b7ac Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 12 Dec 2019 00:42:21 +0000 Subject: fix: Only swallow NotFound errors in std/fs/expandGlob() (#3479) --- std/fs/testdata/expand_wildcard.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 std/fs/testdata/expand_wildcard.js (limited to 'std/fs/testdata') diff --git a/std/fs/testdata/expand_wildcard.js b/std/fs/testdata/expand_wildcard.js new file mode 100644 index 000000000..a30a17536 --- /dev/null +++ b/std/fs/testdata/expand_wildcard.js @@ -0,0 +1,6 @@ +import { expandGlob } from "../expand_glob.ts"; + +const glob = new URL("*", import.meta.url).pathname; +for await (const { filename } of expandGlob(glob)) { + console.log(filename); +} -- cgit v1.2.3