summaryrefslogtreecommitdiff
path: root/std/fs/testdata/expand_wildcard.js
diff options
context:
space:
mode:
authorNayeem Rahman <muhammed.9939@gmail.com>2019-12-12 00:42:21 +0000
committerRy Dahl <ry@tinyclouds.org>2019-12-12 08:42:21 +0800
commit407195ea870a82f4341671d6718f813bd9a3b7ac (patch)
tree4c6e29400ca9b56dc004968e8bcbe4e4b4a53254 /std/fs/testdata/expand_wildcard.js
parentc93ae0b05a4c4fe5b43a9bd2b6430637b17979d0 (diff)
fix: Only swallow NotFound errors in std/fs/expandGlob() (#3479)
Diffstat (limited to 'std/fs/testdata/expand_wildcard.js')
-rw-r--r--std/fs/testdata/expand_wildcard.js6
1 files changed, 6 insertions, 0 deletions
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);
+}