118:05d10aebb9f5 | 119:ad42e6dd7cbd |
---|---|
759 return [this.LValue(o.type)]; | 759 return [this.LValue(o.type)]; |
760 }, | 760 }, |
761 assert: function (expr, message) | 761 assert: function (expr, message) |
762 { | 762 { |
763 if(!expr.truth()) | 763 if(!expr.truth()) |
764 throw message; | 764 if(message && message.truth()) |
765 throw message; | |
766 else | |
767 throw "assertion failed"; | |
765 return [expr]; | 768 return [expr]; |
766 } | 769 } |
767 }; | 770 }; |
768 | 771 |
769 var math = { | 772 var math = { |