--- a/lvm.js Fri Nov 19 19:41:57 2010 +0000
+++ b/lvm.js Fri Nov 19 19:42:25 2010 +0000
@@ -629,6 +629,12 @@
type: function (o)
{
return [this.LValue(o.type)];
+ },
+ assert: function (expr, message)
+ {
+ if(!expr.truth())
+ throw message;
+ return [expr];
}
};