assert.js 282 B

1234567891011
  1. var RTL$ = {
  2. assert: function (condition, code){
  3. if (!condition)
  4. throw new Error("assertion failed"
  5. + ((code !== undefined) ? " with code " + code : ""));
  6. }
  7. };
  8. var m = function (){
  9. RTL$.assert(true);
  10. RTL$.assert(true, 123);
  11. }();