From 6506e713fb559f3e75eae7eb2d9ff76786f00eef Mon Sep 17 00:00:00 2001 From: Michael Weibel Date: Mon, 2 May 2016 19:45:41 +0200 Subject: [PATCH] Add null --- term_to_binary.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/term_to_binary.js b/term_to_binary.js index 7ef56aa..1ae963c 100644 --- a/term_to_binary.js +++ b/term_to_binary.js @@ -17,6 +17,10 @@ var Encoder = function() { return encoder.apply(self, [term]); } + self.null = function() { + return [lib.tags.NIL] + } + self.number = function(x) { return is_int(x) ? self.int(x) : self.float(x); }