summaryrefslogtreecommitdiff
path: root/std/prettier/testdata/echox.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/prettier/testdata/echox.ts')
m---------std0
-rw-r--r--std/prettier/testdata/echox.ts8
2 files changed, 8 insertions, 0 deletions
diff --git a/std b/std
deleted file mode 160000
-Subproject 43aafbf33285753e7b42230f0eb7969b300f71c
diff --git a/std/prettier/testdata/echox.ts b/std/prettier/testdata/echox.ts
new file mode 100644
index 000000000..68c54b999
--- /dev/null
+++ b/std/prettier/testdata/echox.ts
@@ -0,0 +1,8 @@
+async function echox(args: string[]) {
+ for (const arg of args) {
+ await Deno.stdout.write(new TextEncoder().encode(arg));
+ }
+ Deno.exit(0);
+}
+
+echox(Deno.args.slice(1));