summaryrefslogtreecommitdiff
path: root/cli/js/io.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-10-31 23:57:09 +0900
committerRy Dahl <ry@tinyclouds.org>2019-10-31 10:57:09 -0400
commit4f8c9369744bfa4b1223cec916cb0e5b261831dc (patch)
tree318601f91dd945584f540d40703e3d688ae85e0d /cli/js/io.ts
parent64957d92efdfbb8008e51c9d501b0d6754a777b7 (diff)
Make EOF unique symbol (#3244)
Diffstat (limited to 'cli/js/io.ts')
-rw-r--r--cli/js/io.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/js/io.ts b/cli/js/io.ts
index 1a7bf8c4c..15a4ad09b 100644
--- a/cli/js/io.ts
+++ b/cli/js/io.ts
@@ -3,11 +3,8 @@
// Documentation liberally lifted from them too.
// Thank you! We love Go!
-// TODO(kt3k): EOF should be `unique symbol` type.
-// That might require some changes of ts_library_builder.
-// See #2591 for more details.
-export const EOF = null;
-export type EOF = null;
+export const EOF: unique symbol = Symbol("EOF");
+export type EOF = typeof EOF;
// Seek whence values.
// https://golang.org/pkg/io/#pkg-constants