From c749037bac01b6c59efac7a4b552a8f6d9096d17 Mon Sep 17 00:00:00 2001 From: Apacheopteryx Date: Fri, 7 May 2021 21:32:36 -0500 Subject: [PATCH] undefined no packing --- lib/packer.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/packer.ts b/lib/packer.ts index fc6d589..3ea66b3 100644 --- a/lib/packer.ts +++ b/lib/packer.ts @@ -100,7 +100,6 @@ const pack_value = (e: E, value: unknown) => { ? Array.isArray(value) ? list(e, value) : map(e, value) : small_atom(e, [110, 105, 108]); case "string": return string(e, value); - case "undefined": return small_atom(e, [110, 105, 108]); default: throw new Error(`Unsupported type '${typeof value}'`); } };