changeset 219:b70be565d54c

Fix check of return value from env.find in symbol.quote so that falsey found values do not cause trouble.
author Michael Pavone <pavone@retrodev.com>
date Mon, 23 Dec 2013 14:22:20 -0800
parents b799192e404b
children a1a80af71b05
files interp.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/interp.js	Sat Dec 21 12:08:06 2013 -0800
+++ b/interp.js	Mon Dec 23 14:22:20 2013 -0800
@@ -304,7 +304,7 @@
 
 symbol.prototype.quote = function(env) {
 	var val = env.find(this.name);
-	if (val) {
+	if (val !== null) {
 		var newnode = makeASTNode(val);
 		return newnode;
 	} else {