Przeglądaj źródła

add missing notready exception

Quinn Slack 15 lat temu
rodzic
commit
24d390c4c3
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      core/sjcl.js

+ 6 - 0
core/sjcl.js

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