From 3f6f423d1a5d3db229da0a3fd5e0481e4ae74828 Mon Sep 17 00:00:00 2001 From: odino Date: Sat, 2 Feb 2019 17:04:37 +0400 Subject: [PATCH] Backport of #152 --- evaluator/evaluator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/evaluator/evaluator.go b/evaluator/evaluator.go index 13e9c590..0087992a 100644 --- a/evaluator/evaluator.go +++ b/evaluator/evaluator.go @@ -82,8 +82,7 @@ func Eval(node ast.Node, env *object.Environment) object.Object { return &object.Number{Token: node.Token, Value: node.Value} case *ast.NullLiteral: - return &object.Null{Token: node.Token} - // return NULL + return NULL case *ast.StringLiteral: return &object.String{Token: node.Token, Value: node.Value}