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); }