From 163f2ef57117afd410f03be7e7519fc89bd18173 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 16 Aug 2021 09:28:29 +0200 Subject: fix: parse error when transpiling code with BOM (#11688) Co-authored-by: David Sherret --- cli/tests/testdata/byte_order_mark.out | 1 + cli/tests/testdata/byte_order_mark.ts | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 cli/tests/testdata/byte_order_mark.out create mode 100644 cli/tests/testdata/byte_order_mark.ts (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/byte_order_mark.out b/cli/tests/testdata/byte_order_mark.out new file mode 100644 index 000000000..557db03de --- /dev/null +++ b/cli/tests/testdata/byte_order_mark.out @@ -0,0 +1 @@ +Hello World diff --git a/cli/tests/testdata/byte_order_mark.ts b/cli/tests/testdata/byte_order_mark.ts new file mode 100644 index 000000000..40eb23c1d --- /dev/null +++ b/cli/tests/testdata/byte_order_mark.ts @@ -0,0 +1,4 @@ +import "./001_hello.js"; +// Note this file starts with special byte order mark +// it's important that this file is a .ts typescript file which is passed to +// deno through `--no-check` mode. -- cgit v1.2.3