Explorar el Código

add missing notready exception

Quinn Slack hace 15 años
padre
commit
24d390c4c3
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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;
     }
   }
 };