summaryrefslogtreecommitdiff
path: root/prettier/testdata/echox.ts
diff options
context:
space:
mode:
Diffstat (limited to 'prettier/testdata/echox.ts')
-rw-r--r--prettier/testdata/echox.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/prettier/testdata/echox.ts b/prettier/testdata/echox.ts
new file mode 100644
index 000000000..68c54b999
--- /dev/null
+++ b/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));