Преглед изворни кода

add missing notready exception

Quinn Slack пре 15 година
родитељ
комит
24d390c4c3
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      core/sjcl.js

+ 6 - 0
core/sjcl.js

@@ -55,6 +55,12 @@ var sjcl = {
     bug: function(message) {
       this.toString = function() { return "BUG: "+this.message; };
       this.message = message;
+    },
+
+    /** @class Something isn't ready. */
+    notready: function(message) {
+      this.toString = function() { return "NOT READY: "+this.message; };
+      this.message = message;
     }
   }
 };