lvm.js

changeset 61
6acdef1dfb92
parent 60
430a0b155703
child 62
8cb403eeea79
--- a/lvm.js	Fri Nov 19 03:38:41 2010 +0000
+++ b/lvm.js	Fri Nov 19 03:39:00 2010 +0000
@@ -89,6 +89,16 @@
 			this.metatable = null;
 		else
 			throw "Attempt to set a "+metatable.type+" value as a metatable";
+	},
+	toString: function ()
+	{
+		switch(this.type)
+		{
+		case "nil":
+			return "nil";
+		default:
+			return this.value.toString();
+		}
 	}
 };
 

mercurial